Animated 'useNativeDriver' was not specified
yamila-fraiman opened this issue · comments
Hi, I'm getting this warning: Animated 'useNativeDriver' was not specified, when swipe left in the first image or right in the last one. Any idea?
I have the same issue, did you managed to resolve it?, there is no alternative to that package for me
solution :
go inside library files react-native-image-gallery in node_modules folder and searchn for this file ViewTransformer/index.js
and add useNativeDriver: false, to Animated.timing
it should look like this
Animated.timing(
this.state.animator,
{
toValue: 1,
duration: duration,
useNativeDriver: false,
easing: Easing.inOut(Easing.ease)
}
).start();
or you can use:
#152
Thank you for this
solution : go inside library files react-native-image-gallery in node_modules folder and searchn for this file ViewTransformer/index.js and add useNativeDriver: false, to Animated.timing it should look like this Animated.timing( this.state.animator, { toValue: 1, duration: duration, useNativeDriver: false, easing: Easing.inOut(Easing.ease) } ).start();
yep it works perfectly. thanks!😊
or you can use: #152
Thanks for this. This saved my pecious time