yogevbd 6 anos atrás
pai
commit
b8fad5e70c
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      docs/docs/screen-api.md

+ 2
- 2
docs/docs/screen-api.md Ver arquivo

@@ -45,12 +45,12 @@ Pop all the screens until the root from this screen's navigation stack.
45 45
 Navigation.popToRoot(this.props.componentId);
46 46
 ```
47 47
 
48
-## setRootStack(componentId, params)
48
+## setStackRoot(componentId, params)
49 49
 
50 50
 Reset the current navigation stack to a new screen component (the stack root is changed).
51 51
 
52 52
 ```js
53
-Navigation.setRootStack(this.props.componentId, {
53
+Navigation.setStackRoot(this.props.componentId, {
54 54
   component: {
55 55
         name: 'example.NewRootScreen',
56 56
         passProps: {