diff --git a/versioned_docs/version-7.x/nesting-navigators.md b/versioned_docs/version-7.x/nesting-navigators.md index 207e0b1229a..6ca61bf5d1b 100755 --- a/versioned_docs/version-7.x/nesting-navigators.md +++ b/versioned_docs/version-7.x/nesting-navigators.md @@ -12,30 +12,71 @@ Nesting navigators means rendering a navigator inside a screen of another naviga -```js -const Home = createBottomTabNavigator({ +```js name="Nested navigators" snack version=7 +import * as React from 'react'; +import { Text, View, Button } from 'react-native'; +import { + createStaticNavigation, + useNavigation, +} from '@react-navigation/native'; +import { createNativeStackNavigator } from '@react-navigation/native-stack'; +import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; + +function ProfileScreen() { + return ( + + Profile Screen + + ); +} + +function FeedScreen() { + const navigation = useNavigation(); + + return ( + + Feed Screen +