File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 15
15
*
16
16
*/
17
17
18
+ import { firebase } from '@react-native-firebase/app' ;
18
19
import { isError , once } from '@react-native-firebase/app/lib/common' ;
19
- import { getAnalytics , logEvent } from '@react-native-firebase/analytics' ;
20
20
import tracking from 'promise/setimmediate/rejection-tracking' ;
21
21
import StackTrace from 'stacktrace-js' ;
22
22
@@ -96,8 +96,7 @@ export const setGlobalErrorHandler = once(nativeModule => {
96
96
97
97
// Notify analytics, if it exists - throws error if not
98
98
try {
99
- await logEvent (
100
- getAnalytics ( ) ,
99
+ await firebase . app ( ) . analytics ( ) . logEvent (
101
100
'app_exception' , // 'app_exception' is reserved but we make an exception for JS->fatal transforms
102
101
{
103
102
fatal : 1 , // as in firebase-android-sdk
You can’t perform that action at this time.
0 commit comments