|
@@ -232,6 +232,20 @@ Pop all the screens until the root from this screen's navigation stack.
|
232
|
232
|
this.navigator.popToRoot({
|
233
|
233
|
animated: true // does the pop have transition animation or does it happen immediately (optional)
|
234
|
234
|
});
|
|
235
|
+```
|
|
236
|
+
|
|
237
|
+ * **resetTo(params)**
|
|
238
|
+
|
|
239
|
+Reset the screen's navigation stack to a new screen (the stack root is changed).
|
|
240
|
+
|
|
241
|
+```js
|
|
242
|
+this.navigator.resetTo({
|
|
243
|
+ screen: 'example.ScreenThree', // unique ID registered with Navigation.registerScreen
|
|
244
|
+ title: undefined, // navigation bar title of the pushed screen (optional)
|
|
245
|
+ passProps: {}, // simple serializable object that will pass as props to the pushed screen (optional)
|
|
246
|
+ animated: true, // does the push have transition animation or does it happen immediately (optional)
|
|
247
|
+ navigatorStyle: {} // override the navigator style for the pushed screen (optional)
|
|
248
|
+});
|
235
|
249
|
```
|
236
|
250
|
|
237
|
251
|
* **showModal(params = {})**
|