How to create side menu with react-native?

2020-05-17 05:22发布

i'm new in react native, i want to create side menu like this, any reference for this?. thanks a lot.

enter image description here

3条回答
Melony?
2楼-- · 2020-05-17 05:40

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

查看更多
Luminary・发光体
3楼-- · 2020-05-17 05:43

Here you can find a complete template ready to use.

https://github.com/darde/react-native-sidemenu

查看更多
我命由我不由天
4楼-- · 2020-05-17 05:46

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

enter image description here

查看更多
登录 后发表回答