瀏覽代碼

Document popTo(componentId)

Guy Carmeli 6 年之前
父節點
當前提交
bbc643e7bd
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      docs/docs/screen-api.md

+ 7
- 0
docs/docs/screen-api.md 查看文件

@@ -44,6 +44,13 @@ Pop all the screens until the root from this screen's navigation stack.
44 44
 ```js
45 45
 Navigation.popToRoot(this.props.componentId);
46 46
 ```
47
+## popTo(componentId)
48
+
49
+Pop the stack to a given component.
50
+
51
+```js
52
+Navigation.popTo(componentId);
53
+```
47 54
 
48 55
 ## setStackRoot(componentId, params)
49 56