浏览代码

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 7 年前
父节点
当前提交
25cf65b668
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      docs/docs/usage.md

+ 2
- 2
docs/docs/usage.md 查看文件

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