I recently upgraded to RN 0.20 and I now have the following exception thrown when I try to load my app:
undefined is not an object (evaluating 'screenPhyisicalPixels.width')
<unknown>
index.android.bundle?platform=android& def=true:32950
requireImpl
index.android.bundle?platform=android& def=true:76
_require
index.android.bundle?platform=android& def=true:36
Which apparently causes a JS error the following file:
node_modules/react-native/Libraries/Utilities/Dimensions.js at line 30
For info, I'm not using the Dimensions API in my app.
Any tip on this?
You need to update the string in android/app/build.gradle to
dependencies {
compile "com.facebook.react:react-native:0.20.+"
}
Then just run
npm start
react-native run-android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With