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,6 +408,7 @@ class EquipmentRentScreen extends React.Component<PropsType, StateType> {
408 408
           />
409 409
           <Animatable.View
410 410
             ref={this.bookRef}
411
+            useNativeDriver
411 412
             style={{
412 413
               position: 'absolute',
413 414
               bottom: 0,

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

@@ -84,6 +84,7 @@ class GameStartScreen extends React.Component<PropsType> {
84 84
           const animDuration = 2 * (2000 - size * 30);
85 85
           return (
86 86
             <Animatable.View
87
+              useNativeDriver
87 88
               animation="fadeInDownBig"
88 89
               delay={animDelay}
89 90
               duration={animDuration}

Loading…
Cancel
Save