Inform screen changes in your application using setScreenName() in the App.tsx or App.js file.
import { NavigationContainer } from '@react-navigation/native';
import { setScreenName } from 'vwo-insights-react-native-sdk';
<NavigationContainer
onStateChange={(state) => {
setScreenName(state)}}>
<Stack.Navigator>
// otherscreens
</Stack.Navigator>
</NavigationContainer>