jshanson7 / react-native-swipeable

A powerful React Native swipe component.
MIT License
1.24k stars 272 forks source link

Animated: `useNativeDriver` was not specified. #99

Open alejandroAhumada opened 4 years ago

alejandroAhumada commented 4 years ago

WARN: Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false.

The new update of react native requires a modification in the use of Animated: useNativeDriver

MrTeddyB commented 4 years ago

does anyone know how to fix this?

NicholasIoanJones commented 4 years ago

Looks like #101 is a fix - any idea why this isn't being merged?

the-smart-home-maker commented 4 years ago

Looks like #101 is a fix - any idea why this isn't being merged?

Would be really interested in this fix being merged as well...

altersetigor commented 4 years ago

@jshanson7 any chance to merge this useNativeDriver fix soon ? Thx.

Sidharth1999 commented 4 years ago

@jshanson7 Would also really like the fix to be merged, thanks!

HumayounBaig commented 4 years ago

@alejandroAhumada great package but would really like to get rid of this useNativeDriver warning. Please merge the pr mentioned above or fix it yourself if possible

Thanks

saadelqorchi commented 4 years ago

@alejandroAhumada It is a very nice package but I also would like to find a solution to the very annoying useNativeDriver warning. Please help us with a solution, Thank you

Kikketer commented 4 years ago

Like most react-native libraries this one is likely leaving these issues and walking away. Other alternatives may be worth a look (react-native-swipeable-item may be an option... I know I'm going there)

rodolfocassorillo commented 3 years ago

Waiting for a merge.

ighosh07 commented 3 years ago

1.Go to your node modules and navigate to 'react-native-swipeable' folder.

  1. open index.js
  2. go to line number 673
  3. add useNativeDriver: false,
  4. save
  5. do npm cache clean --force
  6. npm install

Worked for me.Not getting the warning. image

rodolfocassorillo commented 3 years ago

I already made the modifications in the file, you can download it (link below) and replace the "index.js" file inside your "../node-modules/react-native-swipeable/lib" But you must replace this file everytime you clean your project or when you start a new project. So if someone can merge the file in the repo will help the community.

https://gist.github.com/rodolfocassorillo/a19caff2828bb5407db7044c8fcd926d

react-native-swipeable.zip

y2kappa commented 3 years ago

can you send a PR?

VincentCATILLON commented 2 years ago

don't know why it's not already merged... @jshanson7

Muriel-Gasparini commented 1 year ago

I already made the modifications in the file, you can download it (link below) and replace the "index.js" file inside your "../node-modules/react-native-swipeable/lib" But you must replace this file everytime you clean your project or when you start a new project. So if someone can merge the file in the repo will help the community.

https://gist.github.com/rodolfocassorillo/a19caff2828bb5407db7044c8fcd926d

react-native-swipeable.zip

complementing this comment. use npx patch-package react-native-swipeable to persist modifications inside node_modules, and set this script inside package.json

"scripts": {
    ...
    "postinstall": "patch-package"
  }
adamwoolhether commented 7 months ago

still getting this