Skip to content

Commit

Permalink
sidebar nav route (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSghais authored Aug 7, 2024
1 parent 6b92471 commit 4703fdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/mobile/src/app/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,13 @@ const RootNavigator: React.FC = () => {
export const Router: React.FC = () => {
const isWeb = Platform.OS === 'web';
const windowWidth = Dimensions.get('window').width;
const shouldShowSidebar = isWeb && windowWidth >= 1024;
return (
<NavigationContainer
// linking={linking}
>
{shouldShowSidebar && <Sidebar></Sidebar>}

<RootNavigator />
</NavigationContainer>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const RootScreenContainer: React.FC<ViewProps> = ({ style, children, ...p
return (
<View style={[styles.container, style]} {...props}>
<View style={styles.content}>
{shouldShowSidebar && <Sidebar></Sidebar>}
{/* {shouldShowSidebar && <Sidebar></Sidebar>} */}
{children}</View>
</View>
);
Expand Down

0 comments on commit 4703fdd

Please sign in to comment.