浏览代码

Update setStackRoot utility function in playground app

Guy Carmeli 4 年前
父节点
当前提交
1627219462
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      playground/src/services/Navigation.js

+ 1
- 1
playground/src/services/Navigation.js 查看文件

@@ -29,7 +29,7 @@ const popToRoot = (self) => Navigation.popToRoot(self.props.componentId);
29 29
 
30 30
 const mergeOptions = (selfOrCompId, options) => Navigation.mergeOptions(compId(selfOrCompId), options);
31 31
 
32
-const setStackRoot = (self, root) => Navigation.setStackRoot(self.props.componentId, root);
32
+const setStackRoot = (selfOrCompId, root) => Navigation.setStackRoot(compId(selfOrCompId), root);
33 33
 
34 34
 const setRoot = (root) => Navigation.setRoot(root.root ? root : { root: component(root, {}) });
35 35