n4kz / react-native-material-dropdown

Material dropdown with consistent behaviour on iOS and Android
Other
732 stars 597 forks source link

Warning 'useNativeDriver' #237

Open Genexys opened 4 years ago

Genexys commented 4 years ago

How resolve this warning? image

ys-sherzad commented 4 years ago

hi there, have you found a solution for that!

OscarYuen commented 4 years ago

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)