reactNative随笔
来源:互联网 发布:网络修复大师 编辑:程序博客网 时间:2024/06/02 03:20
StackNavigator使用
创建路由:
const MyStackNavigation = StackNavigator({ Main: { screen: TabbarPage, navigationOptions:({ navigation }) => ({ headerTitleStyle:{ alignSelf:'center', }, header:null }), }, login:{ screen: login }, Third: { screen: ThirdScreen, navigationOptions:({ navigation }) => ({ headerTitleStyle:{ alignSelf:'center', }, }), }, ScanView:{ screen: ScanView }, ThirdDetail: { screen: ThirdDetail },}, { transitionConfig: TransitionConfiguration, } );export default MyStackNavigation;
界面跳转
this.props.navigation.navigate('guideView',{user:this.theme});重置路由
let reastAction = NavigationActions.reset({ index: 0, actions: [ NavigationActions.navigate({ routeName: 'TabBar'}) ]});this.props.navigation.dispatch(reastAction);
阅读全文
0 0
- ReactNative随笔
- reactNative随笔
- ReactNative
- ReactNative
- ReactNative
- ReactNative
- ReactNative
- [ReactNative]ReactNative学习资源整合
- 随笔
- 随笔
- 随笔
- 随笔
- 随笔
- 随笔
- 随笔
- 随笔
- 随笔
- 随笔
- tomcat 运行classNotFound和classDefNotFound问题解决
- pgSql分区表新建及过程(BBB,ZJLJB)
- Only an OpenJDK based JDK is supported.编译8.0
- utils/deb_build_incontainer.sh
- 无需cad,从dwg文件中读取缩略图
- reactNative随笔
- iOS iqkeyboardmanager使得navigation偏移的问题
- 开除了没情商的“技术大神”后,整个团队都好起来了
- utils/deb_build_remote.sh
- gradle学习(一)
- Android显示系统框架原理介绍 原创 2016年03月23日 11:17:55 标签:surface /surfaceflinger /surfacecomposer /android /disp
- Inter-eNB S1 切换
- spring——(4)自动装配
- Maven