Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated: useNativeDriver was not specified. #99

Open
alejandroAhumada opened this issue May 4, 2020 · 15 comments
Open

Animated: useNativeDriver was not specified. #99

alejandroAhumada opened this issue May 4, 2020 · 15 comments

Comments

@alejandroAhumada
Copy link

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
Copy link

does anyone know how to fix this?

@NicholasIoanJones
Copy link

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

@the-smart-home-maker
Copy link

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
Copy link

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

@Sidharth1999
Copy link

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

@HumayounBaig
Copy link

@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
Copy link

@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
Copy link

Kikketer commented Nov 5, 2020

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
Copy link

Waiting for a merge.

@ighosh07
Copy link

1.Go to your node modules and navigate to 'react-native-swipeable' folder.
2. open index.js
3. go to line number 673
4. add useNativeDriver: false,
5. save
6. do npm cache clean --force
7. npm install

Worked for me.Not getting the warning.
image

@rodolfocassorillo
Copy link

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
Copy link

y2kappa commented Feb 10, 2021

can you send a PR?

@VincentCATILLON
Copy link

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

@Muriel-Gasparini
Copy link

Muriel-Gasparini commented Dec 14, 2022

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
Copy link

still getting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests