File tree Expand file tree Collapse file tree 6 files changed +24
-3
lines changed Expand file tree Collapse file tree 6 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 66 "start" : " expo start" ,
77 "android" : " expo start --android" ,
88 "ios" : " expo start --ios" ,
9+ "dev:ios" : " yarn dev && yarn ios" ,
10+ "dev:android" : " yarn dev && yarn android" ,
11+ "dev" : " cp ../../src/* node_modules/react-native-router-flux/src/" ,
912 "eject" : " expo eject" ,
1013 "lint" : " yarn run eslint **/*.js" ,
1114 "fix" : " yarn run eslint **/*.js --fix" ,
Original file line number Diff line number Diff line change @@ -102,6 +102,13 @@ class TabView extends React.Component {
102102 >
103103 Toggle NavBar
104104 </ Button >
105+ < Button
106+ onPress = { ( ) => {
107+ Actions . replace ( 'tab_2_1' )
108+ } }
109+ >
110+ Replace with tab2
111+ </ Button >
105112 { this . props . name === 'tab_2_1' && (
106113 < Button onPress = { this . toggleTabBar } > Toggle TabBar</ Button >
107114 ) }
Original file line number Diff line number Diff line change 44 "private" : true ,
55 "scripts" : {
66 "start" : " node node_modules/react-native/local-cli/cli.js start" ,
7+ "dev:start" : " yarn dev && yarn start" ,
8+ "ios" : " react-native run-ios" ,
9+ "android" : " react-native run-android" ,
10+ "dev:ios" : " yarn dev && yarn ios" ,
11+ "dev:android" : " yarn dev && yarn android" ,
12+ "dev" : " cp ../../src/* node_modules/react-native-router-flux/src/" ,
713 "test" : " jest" ,
814 "postinstall" : " node_modules/.bin/rnrf dedup"
915 },
Original file line number Diff line number Diff line change @@ -4449,12 +4449,12 @@ react-native-message-bar@^2.0.10:
44494449 version "2.0.10"
44504450 resolved "https://registry.yarnpkg.com/react-native-message-bar/-/react-native-message-bar-2.0.10.tgz#34632bdf2cbfe0f51ae4f1e9a91c42b4394a11c2"
44514451
4452- " react-native-router-flux-cli@file:../packages/react-native-router-flux-cli " :
4452+ " react-native-router-flux-cli@file:../../ packages/react-native-router-flux-cli " :
44534453 version "0.0.1"
44544454 dependencies :
44554455 rimraf "^2.6.2"
44564456
4457- " react-native-router-flux@file:.. " :
4457+ " react-native-router-flux@file:../.. " :
44584458 version "4.0.2-dev"
44594459 dependencies :
44604460 lodash.isequal "4.5.0"
Original file line number Diff line number Diff line change 44 "private" : true ,
55 "scripts" : {
66 "start" : " node node_modules/react-native/local-cli/cli.js start" ,
7+ "ios" : " react-native run-ios" ,
8+ "android" : " react-native run-android" ,
9+ "dev:ios" : " yarn dev && yarn ios" ,
10+ "dev:android" : " yarn dev && yarn android" ,
11+ "dev" : " cp ../../src/* node_modules/react-native-router-flux/src/" ,
712 "test" : " jest" ,
813 "postinstall" : " ./node_modules/.bin/rnrf dedup"
914 },
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ function createNavigationOptions(params) {
350350 res . tabBarOnPress = ( data ) => {
351351 if ( userDefinedTabBarOnPress ) {
352352 console . warn ( 'backToInitial and tabBarOnPress were both defined and might cause unexpected navigation behaviors. I hope you know what you are doing ;-)' ) ;
353- userDefinedTabBarOnPress ( scene , jumpToIndex ) ;
353+ userDefinedTabBarOnPress ( data ) ;
354354 }
355355 if ( data . navigation && data . navigation . state . index !== 0 ) {
356356 data . navigation . dispatch ( StackActions . popToTop ( ) ) ;
You can’t perform that action at this time.
0 commit comments