소스 검색

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 년 전
부모
커밋
25cf65b668
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      docs/docs/usage.md

+ 2
- 2
docs/docs/usage.md 파일 보기

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