Skip to content

Commit ac5aaca

Browse files
committed
Use native driver in Animated
1 parent f6bba20 commit ac5aaca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ActionSheetCustom.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@ class ActionSheet extends Component {
7878
Animated.timing(this.state.sheetPositionY, {
7979
toValue: 0,
8080
duration: 250,
81+
useNativeDriver: true,
8182
}).start();
8283
}
8384

8485
hideSheet(callback) {
8586
Animated.timing(this.state.sheetPositionY, {
8687
toValue: this.translateY,
8788
duration: 150,
89+
useNativeDriver: true,
8890
}).start(callback);
8991
}
9092

0 commit comments

Comments
 (0)