浏览代码

Clean up last 'enable' properties (#4364)

* Fix typo in setStackRoot animation docs

* Use 'enabled' instead of 'enable'
Alberto Blanco 5 年前
父节点
当前提交
7a3b46623c
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 1
    1
      docs/docs/screen-api.md
  2. 2
    2
      playground/src/screens/PushedScreen.js
  3. 2
    2
      playground/src/screens/WelcomeScreen.js

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

@@ -62,7 +62,7 @@ Navigation.setStackRoot(this.props.componentId, {
62 62
         options: {
63 63
           animations: {
64 64
             setStackRoot: {
65
-              enable: true
65
+              enabled: true
66 66
             }
67 67
           }
68 68
         }

+ 2
- 2
playground/src/screens/PushedScreen.js 查看文件

@@ -111,7 +111,7 @@ class PushedScreen extends Component {
111 111
           },
112 112
           animations: {
113 113
             push: {
114
-              enable: false
114
+              enabled: false
115 115
             }
116 116
           },
117 117
           preview: {
@@ -178,7 +178,7 @@ class PushedScreen extends Component {
178 178
         options: {
179 179
           animations: {
180 180
             setStackRoot: {
181
-              enable: false
181
+              enabled: false
182 182
             }
183 183
           },
184 184
           topBar: {

+ 2
- 2
playground/src/screens/WelcomeScreen.js 查看文件

@@ -359,7 +359,7 @@ class WelcomeScreen extends Component {
359 359
         options: {
360 360
           animations: {
361 361
             push: {
362
-              enable: false
362
+              enabled: false
363 363
             }
364 364
           },
365 365
           preview: reactTag ? {
@@ -391,7 +391,7 @@ class WelcomeScreen extends Component {
391 391
         options: {
392 392
           animations: {
393 393
             push: {
394
-              enable: false
394
+              enabled: false
395 395
             }
396 396
           }
397 397
         }