forked from vergnet/application-amicale
Use native driver for more animations
This commit is contained in:
parent
fd44a32b05
commit
a3ce3a76c3
2 changed files with 2 additions and 0 deletions
|
@ -408,6 +408,7 @@ class EquipmentRentScreen extends React.Component<PropsType, StateType> {
|
||||||
/>
|
/>
|
||||||
<Animatable.View
|
<Animatable.View
|
||||||
ref={this.bookRef}
|
ref={this.bookRef}
|
||||||
|
useNativeDriver
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
|
|
|
@ -84,6 +84,7 @@ class GameStartScreen extends React.Component<PropsType> {
|
||||||
const animDuration = 2 * (2000 - size * 30);
|
const animDuration = 2 * (2000 - size * 30);
|
||||||
return (
|
return (
|
||||||
<Animatable.View
|
<Animatable.View
|
||||||
|
useNativeDriver
|
||||||
animation="fadeInDownBig"
|
animation="fadeInDownBig"
|
||||||
delay={animDelay}
|
delay={animDelay}
|
||||||
duration={animDuration}
|
duration={animDuration}
|
||||||
|
|
Loading…
Reference in a new issue