Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Armanoide/4628a6b1c123647a31b9e40205bfabf0 to your computer and use it in GitHub Desktop.
Save Armanoide/4628a6b1c123647a31b9e40205bfabf0 to your computer and use it in GitHub Desktop.
fix react-native-material-textfield module with issue undefined is not an object Animated.Text.propTypes.style

Installation:

  1. Download patch.zip
  2. set it at the root of the project
  3. unzip the patch.zip
  4. add this line in package.json
  5. yarn install
"scripts": {  
...
"postinstall": "./.patch/script-patch.sh" 
... 
}, 
@vijay-dadhich09
Copy link

Hi @Armanoide I am getting this error. What's the problem?
WKMIN9135977:tapin vijdadhi$ yarn install
yarn install v1.22.4
[1/4] 🔍 Resolving packages...
success Already up-to-date.
$ ./.patch/script-patch.sh
patching file ./node_modules/react-native-material-textfield/src/components/affix/index.js
Hunk #2 FAILED at 11.
1 out of 2 hunks FAILED -- saving rejects to file ./node_modules/react-native-material-textfield/src/components/affix/index.js.rej
patching file ./node_modules/react-native-material-textfield/src/components/helper/index.js
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 11.
2 out of 2 hunks FAILED -- saving rejects to file ./node_modules/react-native-material-textfield/src/components/helper/index.js.rej
patching file ./node_modules/react-native-material-textfield/src/components/label/index.js
Hunk #1 succeeded at 1 with fuzz 2.
Hunk #2 FAILED at 43.
1 out of 2 hunks FAILED -- saving rejects to file ./node_modules/react-native-material-textfield/src/components/label/index.js.rej
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
WKMIN9135977:tapin vijdadhi$

@mikebertiean
Copy link

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment