mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-05-07 10:32:59 +08:00
@@ -326,3 +326,9 @@ export function generatePushID(serverTimeOffset?: number = 0): string {
|
||||
|
||||
return id;
|
||||
}
|
||||
|
||||
export function nativeToJSError(code: string, message: string) {
|
||||
const error = new Error(message);
|
||||
error.code = code;
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user