Browse Source

Fix wrong usage of setStackRoot command in playground app (#6136)

For some reason the stack root was set to another stack instead of the children.
Guy Carmeli 4 years ago
parent
commit
913fd75570
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      playground/src/screens/StackScreen.js

+ 2
- 2
playground/src/screens/StackScreen.js View File

71
 
71
 
72
   search = () => Navigation.push(this, Screens.Search);
72
   search = () => Navigation.push(this, Screens.Search);
73
 
73
 
74
-  setStackRoot = () => Navigation.setStackRoot(this, stack([
74
+  setStackRoot = () => Navigation.setStackRoot(this, [
75
     component(Screens.Pushed, { topBar: { title: { text: 'Screen A' } } }),
75
     component(Screens.Pushed, { topBar: { title: { text: 'Screen A' } } }),
76
     component(Screens.Pushed, { topBar: { title: { text: 'Screen B' } } }),
76
     component(Screens.Pushed, { topBar: { title: { text: 'Screen B' } } }),
77
-  ]));
77
+  ]);
78
 
78
 
79
   setStackRootWithId = () => Navigation.setStackRoot(this,
79
   setStackRootWithId = () => Navigation.setStackRoot(this,
80
     {
80
     {