react-native-material-dropdown icon indicating copy to clipboard operation
react-native-material-dropdown copied to clipboard

Warning 'useNativeDriver'

Open Genexys opened this issue 4 years ago • 2 comments

How resolve this warning? image

Genexys avatar May 29 '20 11:05 Genexys

hi there, have you found a solution for that!

ys-sherzad avatar Jun 20 '20 09:06 ys-sherzad

I made a patch to make react-native-material-dropdown work and remove the warning in RN 0.62 .

Requirement:

  1. Install patch-package
  2. Run yarn add patch-package postinstall-postinstall or npm i patch-package

Instruction:

  1. Create "patches" directory under your project's root
  2. Copy this patch to patches/react-native-material-dropdown++react-native-material-textfield+0.12.0.patch
  3. Run yarn patch-package or npx patch-package
  4. Fix is already applied. Add the following to package.json to make sure the fix is automatically applied next time:
 "scripts": {
    "postinstall": "patch-package"
 }

https://gist.github.com/OscarYuen/21f2f8d5c133caef7d31475cfec2d5b0#file-react-native-material-dropdown-react-native-material-textfield-0-12-0-patch

If your yarn didn't installed the text-field under the dropdown node_modules, you could take a look on this thread to apply the patch directly on the text-field library (https://github.com/n4kz/react-native-material-textfield/issues/249)

OscarYuen avatar Jul 14 '20 09:07 OscarYuen