React Native app crashing when visiting specific screen

Asked
Active3 hr before
Viewed126 times

5 Answers

nativereact
90%

This screen works fine when testing using Expo, but crashes the app when it is bundled to apk,I'm not sure whats causing the crash here, but it works on Expo. This has been tested on both emulators and real android devices, which have the same behavior.,This is the error log from the device when visiting the screen:

Pretag
 Pretag team - issue, fix, solve, resolve
88%

Pretag
 Pretag team - issue, fix, solve, resolve
72%

To tackle this we register a global error handler that could be used to for example:,This example shows how to use this module to send global errors to the dev team and show a graceful bug dialog to the user on crash !,This example shows how to use this module show a graceful bug dialog to the user on crash and restart the app when the user presses ok !

include ':react-native-exception-handler'
project(':react-native-exception-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-exception-handler/android')
load more v
65%

Bugsnag mobile crash reporting makes it easy for developers to quickly identify the source of an error and fix bugs by capturing the stacktrace. Save time and easily reproduce an error by viewing automatic breadcrumbs.,Easily view the stacktrace, device information, and breadcrumbs for swift error handling,Automatically detect and report iOS OOMs and Android ANRs

Pretag
 Pretag team - issue, fix, solve, resolve
75%

Logs: Log events in your app to be sent with the crash report for context if your app crashes.,Crash reports: Every crash is automatically turned into a crash report and sent.,CrashlyticsUsageViewing crash reports

# Install & setup the app module
yarn add @react - native - firebase / app

# Install the Crashlytics module
yarn add @react - native - firebase / crashlytics

# If you 're developing your app using iOS, run this command
cd ios / && pod install
load more v

Other "native-react" queries related to "React Native app crashing when visiting specific screen"