Skip to content

Commit

Permalink
set useNativeDriver explicitly for Animations (react-native-share#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
James-E-Adams authored and jgcmarins committed Nov 15, 2019
1 parent 86daf53 commit 25f5de6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/Overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class Overlay extends React.Component<Props, State> {
return Animated.timing(this.state.fadeAnim, {
toValue: newProps.visible ? 1 : 0,
duration: DEFAULT_ANIMATE_TIME,
useNativeDriver: false,
}).start(this.onAnimatedEnd.bind(this));
}
render() {
Expand Down
1 change: 1 addition & 0 deletions components/Sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class extends React.Component<Props, State> {
return Animated.timing(this.state.bottom, {
toValue: newProps.visible ? 0 : DEFAULT_BOTTOM,
duration: DEFAULT_ANIMATE_TIME,
useNativeDriver: false,
}).start();
}

Expand Down

0 comments on commit 25f5de6

Please sign in to comment.