i'm new in react native, i want to create side menu like this, any reference for this?. thanks a lot.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I would like to say use reactnavigation. that is providing drawer To open and close drawer, navigate to 'DrawerOpen' and 'DrawerClose' respectively.
this.props.navigation.navigate('DrawerOpen'); // open drawer
this.props.navigation.navigate('DrawerClose'); // close drawer
https://reactnavigation.org/docs/drawer-based-navigation.html
or here is one example That also is good . refer this
https://github.com/dailydrip/react-native-navigation-sample
回答2:
This is one of my simple project that may show you the idea how to implement a side menu by yourself.
https://github.com/reactazteam/PushyHorizontalMenu
回答3:
Here you can find a complete template ready to use.
https://github.com/darde/react-native-sidemenu