Skip to content

Commit

Permalink
[RN-99] DEV 환경에서는 GA에 로깅되지 않도록 수정 (#543)
Browse files Browse the repository at this point in the history
# Key Changes

- DEV 환경에서는 GA에 로깅되지 않도록 로깅 함수를 수정했습니다.

# Closes Issue

close #540
  • Loading branch information
eunbae0 authored Jun 12, 2024
1 parent da7ca17 commit 834c70d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/screens/CustomNavigationContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const CustomNavigationContainer = ({children}: Props) => {
const navigationRef = useNavigationContainerRef<RootStackParamList>();
const isInitLoadingFinish = useAtomValue(initLoadingAtom);
useEffect(() => {
if (__DEV__) return;
if (!isInitLoadingFinish) return;
const currentRouteName = navigationRef.current?.getCurrentRoute()?.name;
(async () => {
Expand Down
1 change: 1 addition & 0 deletions src/services/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default class AnalyticsService {
logEventName: LogEventNameType,
logEventObject: LogEventObjectType,
): Promise<void> {
if (__DEV__) return;
await analytics().logEvent(logEventName, logEventObject);
}
}

0 comments on commit 834c70d

Please sign in to comment.