Use native driver for more animations

This commit is contained in:
Arnaud Vergnet 2020-08-07 13:49:57 +02:00
parent fd44a32b05
commit a3ce3a76c3
2 changed files with 2 additions and 0 deletions
src/screens
Amicale/Equipment
Game/screens

View file

@ -408,6 +408,7 @@ class EquipmentRentScreen extends React.Component<PropsType, StateType> {
/>
<Animatable.View
ref={this.bookRef}
useNativeDriver
style={{
position: 'absolute',
bottom: 0,

View file

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