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