From c82862313c31b6707ed9b02e1b2971564d900a71 Mon Sep 17 00:00:00 2001 From: Stanley Date: Sat, 5 Dec 2020 18:37:27 -0300 Subject: [PATCH] Add useNativeDriver property required for Animated --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 043b55f..9458674 100755 --- a/index.js +++ b/index.js @@ -49,6 +49,7 @@ export default class Toast extends Component { { toValue: this.props.opacity, duration: this.props.fadeInDuration, + useNativeDriver: true, } ) this.animation.start(() => { @@ -70,6 +71,7 @@ export default class Toast extends Component { { toValue: 0.0, duration: this.props.fadeOutDuration, + useNativeDriver: true, } ) this.animation.start(() => {