Skip to content

Commit 1a7fd5e

Browse files
renatomserrarobcalcroft
authored andcommitted
add use native driver flag
1 parent bf571bb commit 1a7fd5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Notification.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,15 @@ class Notification extends Component {
8888
Animated.timing(this.state.animatedValue, {
8989
toValue: 1,
9090
duration: this.props.openCloseDuration,
91+
useNativeDriver: true,
9192
}).start(done);
9293
}
9394

9495
closeNotification(done) {
9596
Animated.timing(this.state.animatedValue, {
9697
toValue: 0,
9798
duration: this.props.openCloseDuration,
99+
useNativeDriver: true,
98100
}).start(done);
99101
}
100102

0 commit comments

Comments
 (0)