How to create side menu with react-native?

十年热恋 提交于 2020-05-09 18:18:10

问题


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



来源:https://stackoverflow.com/questions/43860981/how-to-create-side-menu-with-react-native

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!