Skip to content

Commit

Permalink
Remove unsupported legacy implementation prop from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Nov 22, 2024
1 parent 5aa07dc commit 0022113
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions versioned_docs/version-7.x/drawer-based-navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down Expand Up @@ -418,7 +417,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down Expand Up @@ -598,7 +596,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down
6 changes: 3 additions & 3 deletions versioned_docs/version-7.x/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default function App() {
return (
// highlight-next-line
<NavigationContainer theme={MyTheme}>
<Drawer.Navigator useLegacyImplementation initialRouteName="Root">
<Drawer.Navigator initialRouteName="Root">
<Drawer.Screen name="Home" component={HomeScreen} />
<Drawer.Screen
name="Root"
Expand Down Expand Up @@ -565,7 +565,7 @@ export default function App() {
return (
// highlight-next-line
<NavigationContainer theme={scheme === 'dark' ? DarkTheme : DefaultTheme}>
<Drawer.Navigator useLegacyImplementation>
<Drawer.Navigator>
<Drawer.Screen name="Home" component={HomeScreen} />
<Drawer.Screen
name="Root"
Expand Down Expand Up @@ -791,7 +791,7 @@ export default function App() {

return (
<NavigationContainer theme={scheme === 'dark' ? DarkTheme : DefaultTheme}>
<Drawer.Navigator useLegacyImplementation initialRouteName="Root">
<Drawer.Navigator initialRouteName="Root">
<Drawer.Screen name="Home" component={HomeScreen} />
<Drawer.Screen
name="Root"
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-7.x/use-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default function App() {

return (
<NavigationContainer theme={scheme === 'dark' ? DarkTheme : DefaultTheme}>
<Drawer.Navigator useLegacyImplementation>
<Drawer.Navigator>
<Drawer.Screen name="Home" component={HomeScreen} />
<Drawer.Screen
name="Root"
Expand Down

0 comments on commit 0022113

Please sign in to comment.