如何使用react-native创建侧面菜单? [英] How to create side menu with react-native?
本文介绍了如何使用react-native创建侧面菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是React Native的新手,我想创建这样的侧边菜单,对此有任何参考吗?多谢.
i'm new in react native, i want to create side menu like this, any reference for this?. thanks a lot.
推荐答案
我想说的是使用reactnavigation.提供抽屉 要打开和关闭抽屉,请分别导航到"DrawerOpen"和"DrawerClose".
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
这篇关于如何使用react-native创建侧面菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文