react-native-material-dropdown
react-native-material-dropdown copied to clipboard
Warning 'useNativeDriver'
How resolve this warning?
hi there, have you found a solution for that!
I made a patch to make react-native-material-dropdown work and remove the warning in RN 0.62 .
Requirement:
- Install patch-package
- Run
yarn add patch-package postinstall-postinstall
ornpm i patch-package
Instruction:
- Create "patches" directory under your project's root
- Copy this patch to patches/react-native-material-dropdown++react-native-material-textfield+0.12.0.patch
- Run
yarn patch-package
ornpx patch-package
- 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)