react-navigation示例

App.js

 

pages/ProfileScreen

 

pages/HomeScreen

 

然后报错:

undefined is not an object (evaluating ‘RNGestureHandlerModule.State’

解决办法:
npm install
npm install --save react-navigation
npm install --save react-native-gesture-handler
react-native link

 

参考:

https://www.cnblogs.com/wuvkcyan/p/10011012.html

https://blog.csdn.net/quhongqiang/article/details/86597694