n4kz / react-native-material-dropdown

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

TypeError: undefined is not an object (evaluating '_reactNative.Animated.Text.propTypes.style') #259

Closed Victorvikson1996 closed 3 years ago

brunosantanarj commented 3 years ago

Same issue, some update ?

brunosantanarj commented 3 years ago

Duplicate https://github.com/n4kz/react-native-material-dropdown/issues/249

zapcriativo commented 3 years ago

For those who don't want to edit node_modules each time, here is a patch file according to @Fabrice-Beya advice using patch-package.

Instruction:

Create patches directory in your project's root Copy patch to patches/react-native-material-textfield+0.12.0patch yarn add patch-package postinstall-postinstall or npm i patch-package yarn patch-package or npx patch-package

Fix is already applied. Add the following to package.json to not repeat the same next time:

"scripts": {
  "postinstall": "patch-package"
 }

Fix using example from https://github.com/n4kz/react-native-material-textfield/issues/249#issuecomment-625791243 editing version version of patch only

Victorvikson1996 commented 3 years ago

Same issue, some update ?

will-sklenars commented 3 years ago

patches/react-native-material-textfield+0.12.0patch

@zapcriativo, I believe you missed a . Should be patches/react-native-material-textfield+0.12.0.patch