Skip to main content

Hello evryone, quick question - is there a way to automatically capture page views using the React Native SDK, similar to how it’s done on the web using the Browser SDK?

Is there a way to track automatically, once user navigate from screen A to screen B amplitude sdk will automatically capture like Browser SDK?

import { track } from '@amplitude/analytics-react-native'
import { EVENT_NAMES } from '@/analytics/events/names'
import type { PageViewProperties } from '@/analytics/types/analytics'

export const trackPageView = (properties: PageViewProperties) => {
track(EVENT_NAMES.PAGE_VIEWED, properties) // tracking manually
}

 

 

Be the first to reply!