You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Review changed files for correctness, security, style
Post final review feedback
Summary
Clean, well-scoped fix. logScreenView() (src/Analytics.ts:50-59) now calls the modular logEvent(analytics, 'screen_view', {...}) instead of the deprecated logScreenView() helper, and the test updates in Analytics.test.ts / Navigation.test.tsx correctly track the new call signature (asserting the 'screen_view' event-name argument and the same screen_name/screen_class payload). This matches the official RNFirebase v24 migration path.
Findings
Nit — leftover dead mock (__mocks__/@react-native-firebase/analytics.ts:5,8,14) mockLogScreenView / logScreenView are still exported from the manual Firebase mock, but nothing in src/ imports logScreenView from @react-native-firebase/analytics anymore (confirmed via repo-wide grep). Harmless since Jest won't complain about an unused mock export, but it's dead code from the migration that could be removed for clarity. Fix this →
Nit — screen_view bypasses the typed event catalog (src/Analytics.ts:50-59)
The rest of the codebase routes events through the generic logEvent<K extends keyof AnalyticsEventParams> wrapper so a bad event name or param key is a compile error (per the doc comment at src/Analytics.ts:10-14). logScreenView calls firebaseLogEvent directly with a literal 'screen_view' and an untyped params object, so it doesn't get that compile-time safety, nor the logger.info call / null-stripping that logEvent provides. Not a bug — screen_name/screen_class are always strings here — just an inconsistency worth being aware of if screen_view params ever grow more fields.
No correctness, security, or test-coverage issues found. I wasn't able to run npm run lint / npm test in this session (Bash tool calls were blocked pending approval), so these findings are from static review only — the PR description states both were run locally with 42 suites / 414 tests passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation