-
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
[IOS / Android] Application crash in production (undefined is not an object (evaluating 'r.default')) #20213
Comments
+1, same problem on 0.56. TypeError: undefined is not an object (evaluating 'e.default') at const { width, height } = Dimensions.get('window'); But Dimensions is imported |
@kufufu9 how do you find error cause? |
How does your import statement look? |
@patrickkempff I dont really know where to find the cause of problem, my index.js
|
@godofmadness I was found the cause on https://sentry.io/ |
This also affects Android release builds (debug is ok) |
Do you use react-navigation? This helped for me: aksonov/react-native-router-flux#3124 (comment) |
issue related to react-navigation: aksonov/react-native-router-flux#3124 |
Environment
React Native Environment Info:
System:
OS: macOS Sierra 10.12.6
CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 420.62 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.6.0 - /usr/local/bin/node
Yarn: 1.3.2 - /usr/local/bin/yarn
npm: 6.1.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.2, macOS 10.13, tvOS 11.2, watchOS 4.2
IDEs:
Android Studio: 3.1 AI-173.4819257
Xcode: 9.2/9C40b - /usr/bin/xcodebuild
npmPackages:
react: ^16.4.1 => 16.4.1
react-native: ^0.56.0 => 0.56.0
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
Description
Only in production app fails (in debug all is ok). Application worked in production before upgrading react-native (0.49.5 -> 0.56.0)
The text was updated successfully, but these errors were encountered: