Open piyushdesuvit opened 5 years ago
same issue here Android 8
same here android 7
Does it not catch any errors ? I mean does it work without the isFatal check ?
const errorHandler = (e, isFatal) => {
Alert.alert(
'Unexpected error occurred'
);
};
Also it would be really helpful if anyone can give a link to a repo where this issue occurs ?
Nope is not working.
My code:
setJSExceptionHandler(errorHandler, true);
in constructor of main class. I still get the red ReferenceError screen for a undefined test()
call
Is anyone working on this? Can confirm the handler is not functioning properly.
@master-atul @piyushdesuvit I'm facing the same issue n both android and ios. The exception alert only displays in the beginning if declare the setNativeExceptionHandler method in iOS
Can someone create a simple react native app repo with reproducible error ? So that we can take a look at it. @ManigandanRaamanathan @mstankov
@master-atul I'll get you the snack example code tomorrow
Is anybody find a solution about this please ?
I have got the same issue here, both (error, isFatal) are undefined. Anyone working on this ?
i am still getting the same result. did anybody solve this problem? RN version 0.60.2 and i used the pod install to link the library.
This is what the library returns
The code that i used
Same here:
const jsErrorHandler = (e, isFatal) => {
console.warn(JSON.stringify({ e, isFatal })));
};
setJSExceptionHandler(jsErrorHandler, true);
{"e":"the componentWillUnmount method","isFatal":false}
Same here. I think I'm just going to use this:
ErrorUtils.setGlobalHandler((error, isFatal) => {
console.log('fug!', error);
});
+1 andriod still crashes directly. but ios works fine without a crash (just not responsive).
for error showing the componentWillUnmount method fatal error it is showing undefined
react-native version "^0.59.5", "react": "^16.8.6", "react-native-exception-handler": "^2.10.7",