Explorar el Código

Update setStackRoot utility function in playground app

Guy Carmeli hace 4 años
padre
commit
1627219462
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      playground/src/services/Navigation.js

+ 1
- 1
playground/src/services/Navigation.js Ver fichero

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