Browse Source

Fixes popTo signature (#1973)

The only argument to `popTo` is the containerId to pop to, not the current containerId as well.  Also showing `this.props.previousContainerIds` lead me to believe that was included automatically (similar to `this.props.containerId`) so I changed that to avoid confusion.
Tim 6 years ago
parent
commit
25cf65b668
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      docs/docs/usage.md

+ 2
- 2
docs/docs/usage.md View File

91
 ```js
91
 ```js
92
 Navigation.pop(this.props.containerId);
92
 Navigation.pop(this.props.containerId);
93
 ```
93
 ```
94
-### popTo(params)
94
+### popTo(containerId)
95
 ```js
95
 ```js
96
-Navigation.popTo(this.props.containerId, this.props.previousScreenIds[0]);
96
+Navigation.popTo(previousScreenId);
97
 ```
97
 ```
98
 ### popToRoot()
98
 ### popToRoot()
99
 Pop all the screens until the root from this screen's navigation stack
99
 Pop all the screens until the root from this screen's navigation stack