Closed kishanbharda closed 3 years ago
same issue for me, it only happens since this morning ....
i just updated to react native 0.63.3 and having the same issue as you are
set useNativeDriver to false. it works on me..
set useNativeDriver to false. it works on me..
where to put this line?
Same issue
TypeError: animEvt is not a function
Setting useNativeDriver={false}
does work but causes opening animation to disappear. The modal just appears without any animation after a slight delay.
I have set swipeToClose={false}
for now until I see a better solution for this.
Edit :
A better workaround for now is setuseNativeDriver : false
in createPanResponder
(This doesn't effects the default opening and closing animations and swipeToClose works as well)
From
const animEvt = Animated.event([null, {customY: position}], {useNativeDriver: this.props.useNativeDriver});
to
const animEvt = Animated.event([null, {customY: position}], {useNativeDriver: false});
Maybe someone can come up with an explanation for this. Not sure why this happens
set useNativeDriver to false. it works on me..
where to put this line?
In the Modal Component
<Modal
useNativeDriver={false}
ref={"modal1"}
//other props
>
</Modal>
set useNativeDriver to false. it works on me..
where to put this line?
In the Modal Component
<Modal useNativeDriver={false} ref={"modal1"} //other props > </Modal>
Okay, got it
Fixed in version 2.0.2 👍
I am using this component in my project. My react-native version is 0.63.2. Here the code that I have used to display modal :
But now, when I open a modal and close it by swiping down it crash the app and displaying me an error :
This is only happing if I close modal by swiping down, If I close modal by clicking on backdrop it's closing properly without any error.