You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.
Son on the example of how to use this there is this render() { const menu = <Menu navigator={navigator}/>;
but react native tell me it Canf find variable Menu.
So the < Menu > tag, where does it come from? and the navigator.
The text was updated successfully, but these errors were encountered:
The Menu Tag is just a placeholder for what you want in the menu.
From the actual package index.js: https://github.com/react-native-community/react-native-side-menu/blob/master/index.js render(): React.Element<void, void> { const menu = ( <View style={[styles.menu, boundryStyle]}> {this.props.menu} </View> ); return ( <View style={styles.container} onLayout={this.onLayoutChange} > {menu} {this.getContentView()} </View> ); }
So this means whatever you pass down as the menu object will be rendered in the Sidemenu. This will yield a side menu that says "The Side Menu is Open":
render() {
const menu = <Text>The Side Menu is Open</Text>;
return (
<SideMenu menu={menu}>
<ContentView/>
</SideMenu>
);
}
Son on the example of how to use this there is this
render() { const menu = <Menu navigator={navigator}/>;
but react native tell me it Canf find variable Menu.
So the < Menu > tag, where does it come from? and the navigator.
The text was updated successfully, but these errors were encountered: