Skip to content

Commit

Permalink
added useNativeDriver to Animated.timing of ToastContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
copleykj committed Oct 20, 2020
1 parent 0e0e02f commit db7c9a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/basic/ToastContainer.js
Expand Up @@ -50,7 +50,8 @@ class ToastContainer extends Component {
if (dx !== 0) {
Animated.timing(this.state.pan, {
toValue: { x: dx, y: 0 },
duration: 100
duration: 100,
useNativeDriver: false
}).start(() => this.closeToast('swipe'));
}
}
Expand Down

0 comments on commit db7c9a9

Please sign in to comment.