浏览代码

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 年前
父节点
当前提交
913fd75570
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      playground/src/screens/StackScreen.js

+ 2
- 2
playground/src/screens/StackScreen.js 查看文件

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