Open dengue8830 opened 6 years ago
I think it's because the example just prints out to the console, the Alert hasn't been implemented
setNativeExceptionHandler((errorString) => {
console.log('setNativeExceptionHandler');
});
I guess I have to write a native exception handler in order to catch it and prevent default crash behavior?
Hence if you click on Cause JS Exception Button, you should see the error been caught straight away.
In case of native exceptions . You would need to run the app in the bundled mode using:
react-native run-ios --configuration Release
For Android you can run it using:
react-native run-android --variant=release
This runs the app on simulator in release configuration.
i followed this
but when i press cause native error i see this
its that ok? I thought i should see this