Skip to content

Commit d1d22c8

Browse files
committed
usine native driver for backdrop animation
1 parent 301198f commit d1d22c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Backdrop.js

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Backdrop extends Component {
1515
Animated.timing(this.fadeAnim, {
1616
duration: OPEN_ANIM_DURATION,
1717
toValue: 1,
18+
useNativeDriver: true,
1819
}).start(resolve);
1920
});
2021
}
@@ -24,6 +25,7 @@ class Backdrop extends Component {
2425
Animated.timing(this.fadeAnim, {
2526
duration: CLOSE_ANIM_DURATION,
2627
toValue: 0,
28+
useNativeDriver: true,
2729
}).start(resolve);
2830
});
2931
}

0 commit comments

Comments
 (0)