---
updatedAt: 2026-06-12T20:36:12.000Z
agentTools:
  projectIndex: https://developers.wingify.com/llms.txt
---

# Set Navigator Observer

Inform screen changes in your application using setScreenName() in the App.tsx or App.js file.

<br />

```javascript
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>

```