Skip to content

Commit 4f7fb2e

Browse files
committed
fix(crashlytics): Revert "fix(crashlytics): convert internal API usage to modular"
This reverts commit b462330.
1 parent 6f0524a commit 4f7fb2e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/crashlytics/lib/handlers.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*
1616
*/
1717

18+
import { firebase } from '@react-native-firebase/app';
1819
import { isError, once } from '@react-native-firebase/app/lib/common';
19-
import { getAnalytics, logEvent } from '@react-native-firebase/analytics';
2020
import tracking from 'promise/setimmediate/rejection-tracking';
2121
import StackTrace from 'stacktrace-js';
2222

@@ -96,8 +96,7 @@ export const setGlobalErrorHandler = once(nativeModule => {
9696

9797
// Notify analytics, if it exists - throws error if not
9898
try {
99-
await logEvent(
100-
getAnalytics(),
99+
await firebase.app().analytics().logEvent(
101100
'app_exception', // 'app_exception' is reserved but we make an exception for JS->fatal transforms
102101
{
103102
fatal: 1, // as in firebase-android-sdk

0 commit comments

Comments
 (0)