Use native driver for more animations

這個提交存在於:
Arnaud Vergnet 2020-08-07 13:49:57 +02:00
父節點 fd44a32b05
當前提交 a3ce3a76c3
共有 2 個檔案被更改,包括 2 行新增0 行删除

查看文件

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

查看文件

@ -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}