-
Notifications
You must be signed in to change notification settings - Fork 37
Throw JSError React Native version independent #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Published in 4.0.7 |
Hey I just tested this and using a c++ |
You tried |
yeah, it seems to be working for some people but I'm not sure why... right now my current guess is it is version dependent 0.70.X branch might handle the error correctly |
Ok, so if I understand it correctly, catching the error in js is not working for <0.70, but it is working for >=0.70. |
I just tried updating the sample project to 0.70 and it is still not working. No idea why is it working for the expo guy... |
Here is the branch I'm working on: https://github.com/ospfranco/react-native-quick-sqlite/tree/throwing-errors-fun |
damnit, I had a tsc outputed file in there which was in js and somehow that was running... it seems now that the error is catched... but I don't really understand what was the change that made it work... My best bet right now is that 0.70 does handle this correctly while 0.6X doesn't |
https://stackoverflow.com/questions/51081892/nodejs-asynchronous-exceptions-are-uncatchable This might be the cause as the transactions are being queued used |
Removes the version dependent JSError throwing as discussed in #83 because the interface changed with facebook/react-native@0035cc9.
Tested on iOS with RN
0.67.4
and0.70.0-rc.4
without errors.