Skip to content

Commit

Permalink
Fix enimEvt is not a function when useNativeDriver enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
maxs15 committed Oct 9, 2020
1 parent d3a90da commit 0a13077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export default class ModalBox extends React.PureComponent {
return true;
};

const animEvt = Animated.event([null, {customY: position}], {useNativeDriver: this.props.useNativeDriver});
const animEvt = Animated.event([null, {customY: position}], {useNativeDriver: false});

const onPanMove = (evt, state) => {
const newClosingState =
Expand Down

0 comments on commit 0a13077

Please sign in to comment.