@dream11mobile/react-native-firebase
Version:
A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto
15 lines (13 loc) • 448 B
Flow
import type {
NativeErrorObject,
NativeErrorInterface,
} from './commonTypes.flow';
export default class NativeError extends Error implements NativeErrorInterface {
constructor(nativeError: NativeErrorObject) {
super(nativeError.message);
this.code = nativeError.code;
this.message = nativeError.message;
this.nativeErrorCode = nativeError.nativeErrorCode;
this.nativeErrorMessage = nativeError.nativeErrorMessage;
}
}