react-native-circular-menu icon indicating copy to clipboard operation
react-native-circular-menu copied to clipboard

Examples

Open andreystarkov opened this issue 7 years ago • 4 comments

Create some examples please

andreystarkov avatar Jun 28 '17 08:06 andreystarkov

i will in a few days :)

cinder92 avatar Jun 28 '17 19:06 cinder92

some examples please

janreyho avatar Sep 22 '17 13:09 janreyho

here is example:

class Feed extends React.Component {
  constructor(props) {
    super(props);
    this.state = { open: false };
  }


  _renderItems () {
    return(
      <Text>ahh</Text>
    )
  }
  _renderCloseBtn () {
    return(
      <Text onPress={() => this.setState({open: false})}>ahh</Text>
    )
  }


  render() {
    return (
      <View style={styles.container}>
        <CircularMenu
            items={() => this._renderItems()}
            closeBtn={this._renderCloseBtn()}
            show={this.state.open}
            items={['ahh']}
            position={"topLeft"}
          />
      <StatusBar hidden />
        <Text onPress={() => this.setState({open: true})}>Feed</Text>
      </View>
    );
  }
}


const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
    paddingTop: Constants.statusBarHeight,
    backgroundColor: '#ecf0f1',
  }
});

hungdev avatar Oct 29 '18 15:10 hungdev

@cinder92 liar :weary:

andreystarkov avatar Oct 29 '18 15:10 andreystarkov

Fixed

cinder92 avatar Nov 09 '22 01:11 cinder92