Issue
I upgraded expo and was using react-native-star-rating and I'm getting:
ERROR TypeError: undefined is not an object (evaluating '_reactNative.Text.propTypes.allowFontScaling')
ERROR Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
I saw something about a patch to this but I dont know how I do this
Solution
Just go to node_modules/react-native-button/Button.js
and import {TextPropTypes} from 'deprecated-react-native-prop-types'
Change 'static propTypes' to
static propTypes = { ... allowFontScaling: TextPropTypes.allowFontScaling, ... style: TextPropTypes.style styleDisabled: TextPropTypes.style, ... };
Obviously, you will have to npm install deprecated-react-native-prop-types first then do the above stated things. Hope it helps
Answered By - Sourabh Sudheer
Answer Checked By - - Gilberto Lyons (ReactFix Admin)