Android native module rejections are not instanceof Error #44050
Labels
Platform: Android
Android applications.
Resolution: Fixed
A PR that fixes this issue has been merged.
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
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
The text was updated successfully, but these errors were encountered: