Skip to content

Commit

Permalink
Deploy website - based on aded1e8
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Feb 23, 2024
1 parent 475fb7d commit ba92187
Show file tree
Hide file tree
Showing 34 changed files with 26 additions and 48 deletions.
1 change: 0 additions & 1 deletion examples/6.x/animated-drawer-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down
1 change: 0 additions & 1 deletion examples/6.x/custom-drawer-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down
1 change: 0 additions & 1 deletion examples/6.x/drawer-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export default function App() {
return (
<NavigationContainer>
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Home" component={HomeScreen} />
Expand Down
2 changes: 1 addition & 1 deletion examples/6.x/drawer-based-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Drawer = createDrawerNavigator();
export default function App() {
return (
<NavigationContainer>
<Drawer.Navigator useLegacyImplementation initialRouteName="Home">
<Drawer.Navigator initialRouteName="Home">
<Drawer.Screen name="Home" component={HomeScreen} />
<Drawer.Screen name="Notifications" component={NotificationsScreen} />
</Drawer.Navigator>
Expand Down
1 change: 0 additions & 1 deletion examples/6.x/drawer-content-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
screenOptions={{
drawerActiveTintColor: '#e91e63',
drawerItemStyle: { marginVertical: 30 },
Expand Down
1 change: 0 additions & 1 deletion examples/6.x/drawer-dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down
2 changes: 1 addition & 1 deletion examples/6.x/drawer-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Drawer = createDrawerNavigator();

function MyDrawer() {
return (
<Drawer.Navigator useLegacyImplementation initialRouteName="Feed">
<Drawer.Navigator initialRouteName="Feed">
<Drawer.Screen
name="Feed"
component={Feed}
Expand Down
1 change: 0 additions & 1 deletion examples/6.x/drawer-open-close-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down
1 change: 0 additions & 1 deletion examples/6.x/drawer-with-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
screenOptions={{
drawerStyle: {
backgroundColor: '#c6cbef',
Expand Down
6 changes: 1 addition & 5 deletions examples/6.x/multiple-drawers-issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ const LeftDrawer = createDrawerNavigator();

const LeftDrawerScreen = () => {
return (
<LeftDrawer.Navigator
useLegacyImplementation
screenOptions={{ drawerPosition: 'left' }}
>
<LeftDrawer.Navigator screenOptions={{ drawerPosition: 'left' }}>
<LeftDrawer.Screen name="Home" component={HomeScreen} />
</LeftDrawer.Navigator>
);
Expand All @@ -36,7 +33,6 @@ const RightDrawer = createDrawerNavigator();
const RightDrawerScreen = () => {
return (
<RightDrawer.Navigator
useLegacyImplementation
screenOptions={{ drawerPosition: 'right', headerShown: false }}
>
<RightDrawer.Screen name="HomeDrawer" component={LeftDrawerScreen} />
Expand Down
8 changes: 4 additions & 4 deletions examples/6.x/multiple-drawers.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ const LeftDrawer = createDrawerNavigator();
function LeftDrawerScreen() {
return (
<LeftDrawer.Navigator
useLegacyImplementation
id="LeftDrawer"
screenOptions={{ drawerPosition: 'left' }}>
screenOptions={{ drawerPosition: 'left' }}
>
<LeftDrawer.Screen name="Home" component={HomeScreen} />
</LeftDrawer.Navigator>
);
Expand All @@ -44,13 +44,13 @@ const RightDrawer = createDrawerNavigator();
function RightDrawerScreen() {
return (
<RightDrawer.Navigator
useLegacyImplementation
id="RightDrawer"
drawerContent={(props) => <RightDrawerContent {...props} />}
screenOptions={{
drawerPosition: 'right',
headerShown: false,
}}>
}}
>
<RightDrawer.Screen name="HomeDrawer" component={LeftDrawerScreen} />
</RightDrawer.Navigator>
);
Expand Down
2 changes: 1 addition & 1 deletion examples/6.x/nested-navigator-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Stack = createNativeStackNavigator();

function Root() {
return (
<Drawer.Navigator useLegacyImplementation>
<Drawer.Navigator>
<Drawer.Screen name="Home" component={Home} />
<Drawer.Screen name="Profile" component={EmptyScreen} />
<Stack.Screen name="Settings" component={EmptyScreen} />
Expand Down
2 changes: 1 addition & 1 deletion examples/6.x/params-nested-navigators.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function Root() {
export default function App() {
return (
<NavigationContainer>
<Drawer.Navigator initialRouteName="Root" useLegacyImplementation>
<Drawer.Navigator initialRouteName="Root">
<Drawer.Screen name="Root" component={Root} />
<Drawer.Screen name="Home" component={HomeScreen} />
</Drawer.Navigator>
Expand Down
2 changes: 1 addition & 1 deletion examples/6.x/simple-drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Drawer = createDrawerNavigator();

function MyDrawer() {
return (
<Drawer.Navigator useLegacyImplementation>
<Drawer.Navigator>
<Drawer.Screen name="Feed" component={Feed} />
<Drawer.Screen name="Article" component={Article} />
</Drawer.Navigator>
Expand Down
2 changes: 1 addition & 1 deletion examples/6.x/simple-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function Root() {
export default function App() {
return (
<NavigationContainer theme={MyTheme}>
<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 examples/6.x/status-bar-focus-effect.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function App() {
return (
<SafeAreaProvider>
<NavigationContainer>
<Drawer.Navigator useLegacyImplementation>
<Drawer.Navigator>
<Drawer.Screen name="Screen1" component={Screen1} />
<Drawer.Screen name="Screen2" component={Screen2} />
</Drawer.Navigator>
Expand Down
2 changes: 1 addition & 1 deletion examples/6.x/system-themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function App() {
return (
<AppearanceProvider>
<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
1 change: 0 additions & 1 deletion examples/7.x/animated-drawer-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down
1 change: 0 additions & 1 deletion examples/7.x/custom-drawer-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down
1 change: 0 additions & 1 deletion examples/7.x/drawer-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export default function App() {
return (
<NavigationContainer>
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Home" component={HomeScreen} />
Expand Down
2 changes: 1 addition & 1 deletion examples/7.x/drawer-based-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Drawer = createDrawerNavigator();
export default function App() {
return (
<NavigationContainer>
<Drawer.Navigator useLegacyImplementation initialRouteName="Home">
<Drawer.Navigator initialRouteName="Home">
<Drawer.Screen name="Home" component={HomeScreen} />
<Drawer.Screen name="Notifications" component={NotificationsScreen} />
</Drawer.Navigator>
Expand Down
1 change: 0 additions & 1 deletion examples/7.x/drawer-content-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
screenOptions={{
drawerActiveTintColor: '#e91e63',
drawerItemStyle: { marginVertical: 30 },
Expand Down
1 change: 0 additions & 1 deletion examples/7.x/drawer-dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down
2 changes: 1 addition & 1 deletion examples/7.x/drawer-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Drawer = createDrawerNavigator();

function MyDrawer() {
return (
<Drawer.Navigator useLegacyImplementation initialRouteName="Feed">
<Drawer.Navigator initialRouteName="Feed">
<Drawer.Screen
name="Feed"
component={Feed}
Expand Down
1 change: 0 additions & 1 deletion examples/7.x/drawer-open-close-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
drawerContent={(props) => <CustomDrawerContent {...props} />}
>
<Drawer.Screen name="Feed" component={Feed} />
Expand Down
1 change: 0 additions & 1 deletion examples/7.x/drawer-with-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
screenOptions={{
drawerStyle: {
backgroundColor: '#c6cbef',
Expand Down
6 changes: 1 addition & 5 deletions examples/7.x/multiple-drawers-issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ const LeftDrawer = createDrawerNavigator();

const LeftDrawerScreen = () => {
return (
<LeftDrawer.Navigator
useLegacyImplementation
screenOptions={{ drawerPosition: 'left' }}
>
<LeftDrawer.Navigator screenOptions={{ drawerPosition: 'left' }}>
<LeftDrawer.Screen name="Home" component={HomeScreen} />
</LeftDrawer.Navigator>
);
Expand All @@ -36,7 +33,6 @@ const RightDrawer = createDrawerNavigator();
const RightDrawerScreen = () => {
return (
<RightDrawer.Navigator
useLegacyImplementation
screenOptions={{ drawerPosition: 'right', headerShown: false }}
>
<RightDrawer.Screen name="HomeDrawer" component={LeftDrawerScreen} />
Expand Down
8 changes: 4 additions & 4 deletions examples/7.x/multiple-drawers.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ const LeftDrawer = createDrawerNavigator();
function LeftDrawerScreen() {
return (
<LeftDrawer.Navigator
useLegacyImplementation
id="LeftDrawer"
screenOptions={{ drawerPosition: 'left' }}>
screenOptions={{ drawerPosition: 'left' }}
>
<LeftDrawer.Screen name="Home" component={HomeScreen} />
</LeftDrawer.Navigator>
);
Expand All @@ -44,13 +44,13 @@ const RightDrawer = createDrawerNavigator();
function RightDrawerScreen() {
return (
<RightDrawer.Navigator
useLegacyImplementation
id="RightDrawer"
drawerContent={(props) => <RightDrawerContent {...props} />}
screenOptions={{
drawerPosition: 'right',
headerShown: false,
}}>
}}
>
<RightDrawer.Screen name="HomeDrawer" component={LeftDrawerScreen} />
</RightDrawer.Navigator>
);
Expand Down
2 changes: 1 addition & 1 deletion examples/7.x/nested-navigator-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Stack = createNativeStackNavigator();

function Root() {
return (
<Drawer.Navigator useLegacyImplementation>
<Drawer.Navigator>
<Drawer.Screen name="Home" component={Home} />
<Drawer.Screen name="Profile" component={EmptyScreen} />
<Stack.Screen name="Settings" component={EmptyScreen} />
Expand Down
2 changes: 1 addition & 1 deletion examples/7.x/params-nested-navigators.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function Root() {
export default function App() {
return (
<NavigationContainer>
<Drawer.Navigator initialRouteName="Root" useLegacyImplementation>
<Drawer.Navigator initialRouteName="Root">
<Drawer.Screen name="Root" component={Root} />
<Drawer.Screen name="Home" component={HomeScreen} />
</Drawer.Navigator>
Expand Down
2 changes: 1 addition & 1 deletion examples/7.x/simple-drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Drawer = createDrawerNavigator();

function MyDrawer() {
return (
<Drawer.Navigator useLegacyImplementation>
<Drawer.Navigator>
<Drawer.Screen name="Feed" component={Feed} />
<Drawer.Screen name="Article" component={Article} />
</Drawer.Navigator>
Expand Down
2 changes: 1 addition & 1 deletion examples/7.x/simple-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function Root() {
export default function App() {
return (
<NavigationContainer theme={MyTheme}>
<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 examples/7.x/status-bar-focus-effect.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function App() {
return (
<SafeAreaProvider>
<NavigationContainer>
<Drawer.Navigator useLegacyImplementation>
<Drawer.Navigator>
<Drawer.Screen name="Screen1" component={Screen1} />
<Drawer.Screen name="Screen2" component={Screen2} />
</Drawer.Navigator>
Expand Down
2 changes: 1 addition & 1 deletion examples/7.x/system-themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function App() {
return (
<AppearanceProvider>
<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

0 comments on commit ba92187

Please sign in to comment.