Przeglądaj źródła

Update setStackRoot utility function in playground app

Guy Carmeli 5 lat temu
rodzic
commit
1627219462
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      playground/src/services/Navigation.js

+ 1
- 1
playground/src/services/Navigation.js Wyświetl plik

@@ -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