React Navigation goes to nested routes, not to initialRoute but it will be execute
up vote
0
down vote
favorite
Machine language . Don't mind
one stackNavigator include two stackNavigator
const PageB = createStackNavigator({
PageB1: PageB1,
PageB2: PageB2,
});
const PageA = createStackNavigator({
PageA1: PageA1,
PageA2: PageA2,
});
const AppNavigator = createStackNavigator({
PageA: PageA,
PageB: PageB,
});
PageA1 goes to PageB2.
when we back, it will be PageB2 -> PageB1 ->PageA1.
the PageB1(initialRoute) will be show.
expect
go: PageA1 -> PageB2
back: PageB2 -> PageA1
react-native react-navigation
add a comment |
up vote
0
down vote
favorite
Machine language . Don't mind
one stackNavigator include two stackNavigator
const PageB = createStackNavigator({
PageB1: PageB1,
PageB2: PageB2,
});
const PageA = createStackNavigator({
PageA1: PageA1,
PageA2: PageA2,
});
const AppNavigator = createStackNavigator({
PageA: PageA,
PageB: PageB,
});
PageA1 goes to PageB2.
when we back, it will be PageB2 -> PageB1 ->PageA1.
the PageB1(initialRoute) will be show.
expect
go: PageA1 -> PageB2
back: PageB2 -> PageA1
react-native react-navigation
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Machine language . Don't mind
one stackNavigator include two stackNavigator
const PageB = createStackNavigator({
PageB1: PageB1,
PageB2: PageB2,
});
const PageA = createStackNavigator({
PageA1: PageA1,
PageA2: PageA2,
});
const AppNavigator = createStackNavigator({
PageA: PageA,
PageB: PageB,
});
PageA1 goes to PageB2.
when we back, it will be PageB2 -> PageB1 ->PageA1.
the PageB1(initialRoute) will be show.
expect
go: PageA1 -> PageB2
back: PageB2 -> PageA1
react-native react-navigation
Machine language . Don't mind
one stackNavigator include two stackNavigator
const PageB = createStackNavigator({
PageB1: PageB1,
PageB2: PageB2,
});
const PageA = createStackNavigator({
PageA1: PageA1,
PageA2: PageA2,
});
const AppNavigator = createStackNavigator({
PageA: PageA,
PageB: PageB,
});
PageA1 goes to PageB2.
when we back, it will be PageB2 -> PageB1 ->PageA1.
the PageB1(initialRoute) will be show.
expect
go: PageA1 -> PageB2
back: PageB2 -> PageA1
react-native react-navigation
react-native react-navigation
asked Nov 7 at 12:20
bingyang519
11
11
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53189365%2freact-navigation-goes-to-nested-routes-not-to-initialroute-but-it-will-be-execu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown