File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
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' ;
19
18
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,7 +96,8 @@ export const setGlobalErrorHandler = once(nativeModule => {
96
96
97
97
// Notify analytics, if it exists - throws error if not
98
98
try {
99
- await firebase . app ( ) . analytics ( ) . logEvent (
99
+ await logEvent (
100
+ getAnalytics ( ) ,
100
101
'app_exception' , // 'app_exception' is reserved but we make an exception for JS->fatal transforms
101
102
{
102
103
fatal : 1 , // as in firebase-android-sdk
You can’t perform that action at this time.
0 commit comments