MOB-991 rm firebase log from pressableWithTracking

This commit is contained in:
sepeterson
2025-12-02 09:14:03 -06:00
parent 403be86702
commit ab8f0bd1a5

View File

@@ -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 ) {