mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
MOB-991 rm firebase log from pressableWithTracking
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { getAnalytics, logEvent } from "@react-native-firebase/analytics";
|
||||
import { getCurrentRoute } from "navigation/navigationUtils";
|
||||
import React from "react";
|
||||
import type { PressableProps } from "react-native";
|
||||
@@ -15,12 +14,6 @@ const PressableWithTracking = React.forwardRef<typeof Pressable, PressableProps>
|
||||
if ( otherProps?.testID ) {
|
||||
const currentRoute = getCurrentRoute( );
|
||||
logger.info( `Button tap: ${otherProps?.testID}-${currentRoute?.name || "undefined"}` );
|
||||
// Basic button tap tracking with Firebase Analytics
|
||||
const analytics = getAnalytics();
|
||||
logEvent( analytics, "button_tap", {
|
||||
testID: otherProps?.testID,
|
||||
screen: currentRoute?.name
|
||||
} );
|
||||
}
|
||||
|
||||
if ( onPress ) {
|
||||
|
||||
Reference in New Issue
Block a user