You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no simple steps to reproduce, providing a screenshot to show the error
Expected Behavior
The Android App is expected to launch correctly
Actual Behavior
The app worked fine on 0.49 and stopped working on android after upgrade to 0.53. The following error now appears when the debug android app is launched on actual device (Samsung S6). If I reload the app (shake and reload), it works fine.
I've seen similar errors on github but they seemed slightly different so creating new issue. I've tried a lot of different things to fix the problem (upgrading to latest react version, looking at similar issues online, etc.) but nothing works. I'd appreciate any pointers that you may have.
Reproducible Demo
The code that might be causing the error in android.index.bundle is as follows:
__d(function(e, s, i, l) {
"use strict";
var t = (s(49), s(68)),
n = s(75),
a = s(18),
c = {},
o = function() {
function e() {
babelHelpers.classCallCheck(this, e)
}
return babelHelpers.createClass(e, null, [{
key: "set",
value: function(e) {
if (e && e.windowPhysicalPixels) {
e = JSON.parse(JSON.stringify(e));
var s = e.windowPhysicalPixels;
e.window = {
width: s.width / s.scale,
height: s.height / s.scale,
scale: s.scale,
fontScale: s.fontScale
};
var i = e.screenPhysicalPixels;
e.screen = {
width: i.width / i.scale,
height: i.height / i.scale,
scale: i.scale,
fontScale: i.fontScale
}, delete e.screenPhysicalPixels, delete e.windowPhysicalPixels
}
babelHelpers.extends(c, e)
}
}, {
key: "get",
value: function(e) {
return a(c[e], "No dimension set for key " + e), c[e]
}
}]), e
}();
o.set(t.Dimensions), n.addListener("didUpdateDimensions", function(e) {
o.set(e)
}), i.exports = o
}, 74);
_
The text was updated successfully, but these errors were encountered:
Closing the issue. In the end turned out to be an index.bundle.android file that wasn't being updated. This fixed the issue:
react-native bundle --platform android --dev true --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
Then release build failed due to the following issue on some components: #16567
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS Sierra 10.12
Node: 8.4.0
Yarn: Not Found
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 8.3.3 Build version 8E3004b
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: ^16.2.0 => 16.2.0
react-native: ^0.53.0 => 0.53.0
Steps to Reproduce
There are no simple steps to reproduce, providing a screenshot to show the error
Expected Behavior
The Android App is expected to launch correctly
Actual Behavior
The app worked fine on 0.49 and stopped working on android after upgrade to 0.53. The following error now appears when the debug android app is launched on actual device (Samsung S6). If I reload the app (shake and reload), it works fine.
I've seen similar errors on github but they seemed slightly different so creating new issue. I've tried a lot of different things to fix the problem (upgrading to latest react version, looking at similar issues online, etc.) but nothing works. I'd appreciate any pointers that you may have.
Reproducible Demo
The code that might be causing the error in android.index.bundle is as follows:
The text was updated successfully, but these errors were encountered: