Browse Source

Use native driver for more animations

Arnaud Vergnet 3 years ago
parent
commit
a3ce3a76c3

+ 1
- 0
src/screens/Amicale/Equipment/EquipmentRentScreen.js View File

408
           />
408
           />
409
           <Animatable.View
409
           <Animatable.View
410
             ref={this.bookRef}
410
             ref={this.bookRef}
411
+            useNativeDriver
411
             style={{
412
             style={{
412
               position: 'absolute',
413
               position: 'absolute',
413
               bottom: 0,
414
               bottom: 0,

+ 1
- 0
src/screens/Game/screens/GameStartScreen.js View File

84
           const animDuration = 2 * (2000 - size * 30);
84
           const animDuration = 2 * (2000 - size * 30);
85
           return (
85
           return (
86
             <Animatable.View
86
             <Animatable.View
87
+              useNativeDriver
87
               animation="fadeInDownBig"
88
               animation="fadeInDownBig"
88
               delay={animDelay}
89
               delay={animDelay}
89
               duration={animDuration}
90
               duration={animDuration}

Loading…
Cancel
Save