yogevbd 6 years ago
parent
commit
b8fad5e70c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      docs/docs/screen-api.md

+ 2
- 2
docs/docs/screen-api.md View File

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