美文网首页
RN(React Native)移动端开发

RN(React Native)移动端开发

作者: 宋song一 | 来源:发表于2018-10-28 21:49 被阅读3次

    路由(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 (动作):触发路由跳转

    相关文章

      网友评论

          本文标题:RN(React Native)移动端开发

          本文链接:https://www.haomeiwen.com/subject/ciumtqtx.html