meliorence / react-native-image-gallery

Pure JavaScript image gallery component for iOS and Android with high-performance and native feeling in mind
715 stars 298 forks source link

Animated 'useNativeDriver' was not specified #146

Open yamila-fraiman opened 4 years ago

yamila-fraiman commented 4 years ago

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?

otskarli commented 4 years ago

I have the same issue, did you managed to resolve it?, there is no alternative to that package for me

mega4area commented 4 years ago

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();

andy-asi commented 3 years ago

or you can use: https://github.com/archriss/react-native-image-gallery/pull/152

zholmes1 commented 3 years ago

or you can use:

152

Thank you for this

Imon621 commented 2 years ago

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!😊

natemartins commented 2 years ago

or you can use: #152

Thanks for this. This saved my pecious time