react-native-circular-menu
react-native-circular-menu copied to clipboard
Examples
Create some examples please
i will in a few days :)
some examples please
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',
}
});
@cinder92 liar :weary:
Fixed