瀏覽代碼

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