Open vonovak opened 1 month ago
:warning: | Add or Reformat Version Info |
---|---|
:information_source: | We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2 |
Description
Promise rejections coming from native modules on Android are not
instanceof Error
. This is not in line with iOS, and with what is expected.This is the same as #41950 but for Android - I'm not sure if I made a mistake back then when I reported it for iOS only, or if something has changed... but I'm reporting it now. It's also present on the main branch.
An (somewhat poor) attempt at a fix is at #44051
Steps to reproduce
the output is
{"errorToString": "[object Object]", "isInstanceOf": false}
React Native Version
0.74.0-rc.8
Affected Platforms
Runtime - Android
Areas
TurboModule - The New Native Module System
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/vonovak/bugrepro
Screenshots and Videos
No response