Bläddra i källkod

Update animations documentation

startApp animation was renamed to setRoot and is available only on Android
Guy Carmeli 6 år sedan
förälder
incheckning
7db7f0833c
1 ändrade filer med 3 tillägg och 9 borttagningar
  1. 3
    9
      docs/docs/styling.md

+ 3
- 9
docs/docs/styling.md Visa fil

@@ -280,17 +280,11 @@ The following properties can be animated:
280 280
 }
281 281
 ```
282 282
 
283
-For example, changing the animation used when the app is first launched:
283
+For example, changing the animation used when the app is first launched (Supported only on Android):
284 284
 ```js
285 285
 Navigation.setDefaultOptions({
286 286
   animations: {
287
-    startApp: {
288
-      y: {
289
-        from: 1000,
290
-        to: 0,
291
-        duration: 500,
292
-        interpolation: 'accelerate',
293
-      },
287
+    setRoot: {
294 288
       alpha: {
295 289
         from: 0,
296 290
         to: 1,
@@ -306,7 +300,7 @@ Navigation.setDefaultOptions({
306 300
 ## Customizing navigation commands animation
307 301
 
308 302
 Animations for the following set of commands can be customized
309
-* startApp
303
+* setRoot
310 304
 * push
311 305
 * pop
312 306
 * showModal