-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
App crash in release mode when using 'View.propTypes.style' #16542
Comments
View.propTypes.style isn't valid and printed a deprecation message for several releases before it was removed. Use ViewPropTypes.style instead. |
@ide why View.propTypes.style working in develop build ? |
We have found the same issue. It only crashes in release mode, but if we are running the packager locally and using debug mode it works |
We have run into this issue as well - runs fine in Debug, crashes in Release. |
Removing
|
underfined is not an object(evaluating '_reactNative.View.propType.style' |
This is because of the Reactoron, which is not available at release mode. |
@ghoshabhi How you remove View.propTypes.style. My project is working in simulator but not in real device. How i find which library have issue. "version": "0.0.1", |
@arunjkumarp : I searched for |
@ghoshabhi |
On React Native 0.53.3 my app runs in DEV mode, but when archived and deployed to a device crashes with: `underfined is not an object(evaluating '_reactNative.View.propType.style'`. See facebook/react-native#16542. Removing this prop solves this crash.
Hi, I just run across this issue after building my Expo app and submitted to Testflight and tested it on my real device to find out something wrong. I don't think this issue should be closed. This issue is just so crazy. I did not expect react-native to ever do any subtle thing that can break almost all existing apps instantly. Seven Sins
|
@carsonwah I have the same views... what did you do to get around the issue being in other packages? |
@DanDatefit I search for "View.propTypes.style" in my If you have some packages that did not update for this because of out of maintainence, I guess you should:
DO NOT directly modify |
@carsonwah figured I'd need to fork it like you mentioned, most people are just editing the node_modules folder and calling it a day and I'm like wait whaaaatttt. Thanks for responding, luckily most packages have updated and there's only a few culprits that need utensiled. Couldn't we just create a backwards combat library that just polyfills View.popTypes.style..? |
A little tip for anybody trying to find what dependencies they have that are using grep -onr "View.propTypes.style" . Options
Example Output./node_modules/react-native-sortable-list/src/Row.js:12:View.propTypes.style
./node_modules/react-native-sortable-list/src/SortableList.js:19:View.propTypes.style
./node_modules/react-native-sortable-list/src/SortableList.js:20:View.propTypes.style
./node_modules/react-native-swiper/src/index.js:103:View.propTypes.style That will help you establish which dependencies you need to update in order to update to React Native 0.49+ |
As per facebook/react-native#16542. Fixes #770.
I have found that situation react native 0.55.4. Then it works well in release mode. |
I am having the same issue when i replace View.propTypes.style with ViewPropTypes.style it worked fine but when i again compile my app by command "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res" it again start giving the same error |
plz help asap i am working on window with ver-0.55.4 |
@ide @carsonwah @sytolk @joshuapinter In my app there is no |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS High Sierra 10.13
Node: 8.7.0
Yarn: 1.2.1
npm: 5.4.2
Watchman: 4.7.0
Xcode: Xcode 9.0.1 Build version 9A1004
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: 0.49.3 => 0.49.3
Steps to Reproduce
(Write your steps here:)
Expected Behavior
App work well
Actual Behavior
Crash
(Write what happened. Add screenshots!)
undefined is not an object(evaluating '_reactNative.View.propTypes.style')
Reproducible Demo
https://snack.expo.io/SkG37a0a-
The text was updated successfully, but these errors were encountered: