浏览代码

Fix setStackRoot animation documentation (#3849)

Raphael Hovsepyan 6 年前
父节点
当前提交
7ac78c2b3c
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      docs/docs/screen-api.md

+ 5
- 1
docs/docs/screen-api.md 查看文件

@@ -60,7 +60,11 @@ Navigation.setStackRoot(this.props.componentId, {
60 60
           text: 'Root screen'
61 61
         },
62 62
         options: {
63
-          animated: true // Will animate root change same as push
63
+          animations: {
64
+            setStackRoot: {
65
+              enable: true
66
+            }
67
+          }
64 68
         }
65 69
       }
66 70
 });