路由(react-native-router-flux)
-
react-native-router-flux
-
源码地址:https://github.com/aksonov/react-native-router-flux
应用场景:在RN项目中进行路由跳转时使用
安装方式:
yarn add react-native-router-flux
-
使用:
Router(路由): 一般写在项目的根组件
Stack (栈):给Scene场景提供容器
Scene(场景):设置路由跳转规则
Actions (动作):触发路由跳转
网友评论