You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When developing a React Native app which uses NativeModules I found myself wanting to handle errors but struggling to even know what types should be returned for rejection of promises.
Discussion points
I think documentation needs improvement for promise rejection, unless I missed something I couldn't find any info on that.
Introduction
When developing a React Native app which uses NativeModules I found myself wanting to handle errors but struggling to even know what types should be returned for rejection of promises.
Discussion points
The type should have these properties for Android:
https://github.com/facebook/react-native/blob/1ca63e3e3dff6639f4efde74583145f9fa53759a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/PromiseImpl.java#L31
The text was updated successfully, but these errors were encountered: