Browse Source

Update animations documentation

startApp animation was renamed to setRoot and is available only on Android
Guy Carmeli 6 years ago
parent
commit
7db7f0833c
1 changed files with 3 additions and 9 deletions
  1. 3
    9
      docs/docs/styling.md

+ 3
- 9
docs/docs/styling.md View File

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
 ```js
284
 ```js
285
 Navigation.setDefaultOptions({
285
 Navigation.setDefaultOptions({
286
   animations: {
286
   animations: {
287
-    startApp: {
288
-      y: {
289
-        from: 1000,
290
-        to: 0,
291
-        duration: 500,
292
-        interpolation: 'accelerate',
293
-      },
287
+    setRoot: {
294
       alpha: {
288
       alpha: {
295
         from: 0,
289
         from: 0,
296
         to: 1,
290
         to: 1,
306
 ## Customizing navigation commands animation
300
 ## Customizing navigation commands animation
307
 
301
 
308
 Animations for the following set of commands can be customized
302
 Animations for the following set of commands can be customized
309
-* startApp
303
+* setRoot
310
 * push
304
 * push
311
 * pop
305
 * pop
312
 * showModal
306
 * showModal