react-native-swipeable icon indicating copy to clipboard operation
react-native-swipeable copied to clipboard

Animated: `useNativeDriver` was not specified.

Open alejandroAhumada opened this issue 4 years ago • 15 comments

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

alejandroAhumada avatar May 04 '20 17:05 alejandroAhumada

does anyone know how to fix this?

MrTeddyB avatar May 31 '20 12:05 MrTeddyB

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

NicholasIoanJones avatar Jun 11 '20 01:06 NicholasIoanJones

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...

the-smart-home-maker avatar Jun 24 '20 11:06 the-smart-home-maker

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

altersetigor avatar Jul 10 '20 12:07 altersetigor

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

Sidharth1999 avatar Jul 21 '20 02:07 Sidharth1999

@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

HumayounBaig avatar Aug 21 '20 14:08 HumayounBaig

@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

saadelqorchi avatar Sep 04 '20 02:09 saadelqorchi

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)

Kikketer avatar Nov 05 '20 17:11 Kikketer

Waiting for a merge.

rodolfocassorillo avatar Nov 25 '20 17:11 rodolfocassorillo

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

ighosh07 avatar Jan 27 '21 13:01 ighosh07

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

rodolfocassorillo avatar Jan 27 '21 17:01 rodolfocassorillo

can you send a PR?

y2kappa avatar Feb 10 '21 20:02 y2kappa

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

VincentCATILLON avatar Jan 20 '22 23:01 VincentCATILLON

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"
  }

Muriel-Gasparini avatar Dec 14 '22 21:12 Muriel-Gasparini

still getting this

adamwoolhether avatar Mar 24 '24 14:03 adamwoolhether