react-native-navigation 原生路由组件的使用

来源:互联网 发布:r语言读取大数据csv 编辑:程序博客网 时间:2024/05/16 18:49

GitHub地址:      https://github.com/wix/react-native-navigation    

 Readme   Ducumentation 链接里面有详细使用方法介绍.文章主要记录一下路由导航头的基本配置信息


this.props.navigator.push({

screen:'example.ScreenPush',   //唯一的注册ID

title:'登录'  //导航头标题

titleImage:require('../img/example.png'),  //导航头标题也可以是图片,设置了此项会覆盖title

passProps:{}, //对象会作为一个属性传递给跳转的页面

animated:true,  //跳转过渡效果,默认true

backButtonTitle:'', //返回键边上的title,不需要就设置为空

backButtonHidden:false,  //返回键是否隐藏,默认不隐藏

});

原创粉丝点击