-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
[0.20] [Android] screenPhysicalPixels undefined #5963
Comments
|
Hey mikefowler, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
|
+1 I'm having the same issue, on the file react-native/Libraries/Utilities/Dimensions.js in the object dimensions.screen = { |
|
Just reached the same problem. Any workaround? |
|
Ok I think actually it's a caching bug. I've removed the app from my phone and it worked. |
|
Just tried removing the app, installed fresh node modules and reinstalled the app to the emulator and I'm still getting the same error. |
|
I've also repeated similar steps to no avail:
Same error. |
|
Same here. Tried @mikefowler 's steps and same result. |
|
same Issue, my workaround is change it to: // // delete so no callers rely on this existing in 'Libraries/Utilities/Dimensions.js' |
|
@paulbao it worked. |
|
Could you please help to confirm if it works now? |
|
@paulbao i am using android device and its working fine along with react-native @0.20 |
|
@rameshvishnoi90904 Yes, you are right mate. I just forget to change dependencies. |
|
+1 |
|
@rameshvishnoi90904 @paulbao you're right. 🍻 |
|
@satya164 why was this closed? This hasn't been fixed yet and I'd really rather not have to dig into my node_modules and fix the code everytime I reinstall them. |
|
@RyanMitchellWilson actually there are no bugs. grep for 0.19, you probably have an old version somewhere. |
|
Confirmed. Though it's unclear if we all did something wrong or if |
|
Confirmed. Updating build.gradle works. |
|
@mikefowler I updated react-native manually and it's my mistake not to update build.gradle also. |
|
confirmed. At first, I update react native only by If you are just running example or simple project without any specific settings, maybe it's proper to use |
The version of 0.17 will cause error ("undefined is not an object (evaluating 'screenPhysicalPixels.width')") when run to devices/simulator.
also see facebook#5963
Summary:The version of 0.17 will cause error ("undefined is not an object (evaluating 'screenPhysicalPixels.width')") when run to devices/simulator.
also see #5963
Closes #6076
Differential Revision: D2960511
fb-gh-sync-id: bd71de789fa1501b285b9bde01cf12ab9ce75888
shipit-source-id: bd71de789fa1501b285b9bde01cf12ab9ce75888
|
change android/app/build.gradle file |
|
Can someone point out which exact version of react-native fixes it? 0.20.1? Using |
|
Okay. I verified that |
Summary:The version of 0.17 will cause error ("undefined is not an object (evaluating 'screenPhysicalPixels.width')") when run to devices/simulator.
also see facebook#5963
Closes facebook#6076
Differential Revision: D2960511
fb-gh-sync-id: bd71de789fa1501b285b9bde01cf12ab9ce75888
shipit-source-id: bd71de789fa1501b285b9bde01cf12ab9ce75888
Changes in 228a1fe appear to have broken Android. The requiring of
Dimensionsthrows the following error:undefined is not an object (evaluating 'screenPhysicalPixels.width')The text was updated successfully, but these errors were encountered: