-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS: [tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: undefined is not an object (evaluating 'a.View.propTypes.style') #294
Comments
Some issue. How to fix it without node modules changes? |
Fork and set source to your repo instead. |
Yes, I forked for myself and edited package.json, like this
|
I use simulator was fine, but build to IOS device got same issue. System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles |
this error appeared for me when I was testing "Release" build on simulator, "Debug" build didn't show this error |
I got the same error. Finally I run this script after installation (or before Release build): # Update react-native-facebook-login
# refs:
# - https://github.com/react-navigation/react-navigation/issues/1352
# - https://github.com/magus/react-native-facebook-login/issues/294
perl -i -pe 's/View,$/View, ViewPropTypes,/' ./node_modules/react-native-facebook-login/index.ios.js
perl -i -pe 's/View.propTypes.style,$/ViewPropTypes,/' ./node_modules/react-native-facebook-login/index.ios.js This is undesirable Hack but temporarily solution here. |
Thanks for reporting this, the fix is out in version 1.6.1! |
I'm using 1.6.1 and the issue |
@Soren-Knudsen I had this issue on 1.6.0 but after I upgraded to 1.6.1 the error disappeared.
|
@acro5piano: Thanks for a quick response. I haven't tried |
@acro5piano : Tried |
@Soren-Knudsen Did you succeed when building in Debug mode? |
@acro5piano : Yes without problems. Somehow the issue seems to persist when building it in release mode even though I cleaned out the yarn cache and reinstalled all my node modules. |
@Soren-Knudsen Hmmm that is strange. |
@acro5piano: I'm able to build it in both in
Tried the following:
I also tried using |
@Soren-Knudsen Thanks for the detail information. I saw the error when I used At first, please ensure you successfully installed and using
in your project root and the output is something like
then it's ok. Second, which is your RN version? refs:
Third, if the error cannot be delete... style: viewPropTypes.style, Or you can use this library, I just found. https://github.com/reactjs/react-codemod#reactnative-view-proptypes |
Steps
@acro5piano: Are you able to build and run your application in release mode when using |
@Soren-Knudsen My environment is:
Little bit older than your version of I am able to build and run my application both in Debug mode and Release mode. |
this line caused my app to crash (strangely worked fine in debug build and crashed in release), seems they renamed View.propTypes.style (as temporary fix I just removed this line in my ./node_modules/)
react-native-facebook-login/index.ios.js
Line 93 in 4a2e667
The text was updated successfully, but these errors were encountered: