@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