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
@a7ul I am using this code in my App.js but the alert is not showing instead it shows unhandled promise rejection in Yellowbox
const errorHandler = (e, isFatal) => {
if (isFatal) {
Alert.alert(
'Unexpected error occurred',
`
Error: ${isFatal ? 'Fatal:' : ''} ${e.name} ${e.message}
We have reported this to our team ! Please close the app and start again!
`,
[
{
text: 'Close'
}
]
)
} else {
console.log(e) // So that we can see it in the ADB logs in case of Android if needed
}
}
setJSExceptionHandler(errorHandler, true)
setNativeExceptionHandler((errorString) => {
console.log('setNativeExceptionHandler')
})
@a7ul I am using this code in my App.js but the alert is not showing instead it shows unhandled promise rejection in Yellowbox
These are my dependencies
The text was updated successfully, but these errors were encountered: