Skip to content

Commit

Permalink
chore: commit uncomitted files
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLindhout committed Jan 3, 2025
1 parent 05ef04a commit d096c0c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
5 changes: 2 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"start": "expo start",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "run pre-web && expo start --web",
"web:build": "expo export -p web",
"web:before": "rm -rf ./node_modules/@expo/vector-icons && rm -rf node_modules/react-native-vector-icons"
"web": "expo start --web",
"web:build": "expo export -p web"
},
"dependencies": {
"@expo/metro-runtime": "~4.0.0",
Expand Down
3 changes: 2 additions & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import routes from './Routes';
import AsyncBoundaryScreen from './helpers/AsyncBoundaryScreen';
import NavigationRoots from './NavigationRoots';
import BottomRoots from './BottomRoots';
import AppWebLayout from './AppWebLayout';

const screens = createScreens(routes);

Expand Down Expand Up @@ -96,7 +97,7 @@ const navigationRoot = {
{
breakingPointWidth: 600,
components: {
// override: HeaderWeb,
override: AppWebLayout,
start: ({ orientation }) => {
if (orientation === 'vertical') {
return null;
Expand Down
11 changes: 5 additions & 6 deletions example/src/HeaderWeb.tsx → example/src/AppWebLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import type { BottomTabOverrideProps } from 'react-native-ridge-navigation';
import { Button, Text, IconButton, useTheme } from 'react-native-paper';
import { View } from 'react-native';
import { BottomTabLink } from 'react-native-ridge-navigation';
import BottomRoots from './BottomRoots';

import { BottomRoot } from './Navigator';

export default function HeaderWeb({
export default function AppWebLayout({
orientation,
originalBottomTabs,
children,
Expand All @@ -29,7 +28,7 @@ export default function HeaderWeb({
<Text style={{ color: theme.colors.onBackground, fontSize: 22 }}>
Logo
</Text>
<BottomTabLink to={BottomRoot.Home} params={{}}>
<BottomTabLink to={BottomRoots.Home} params={{}}>
{({ isSelected, ...linkProps }) => (
<Button {...linkProps}>
<Text
Expand All @@ -40,7 +39,7 @@ export default function HeaderWeb({
</Button>
)}
</BottomTabLink>
<BottomTabLink to={BottomRoot.Posts} params={{}}>
<BottomTabLink to={BottomRoots.Posts} params={{}}>
{({ isSelected, ...linkProps }) => (
<Button {...linkProps}>
<Text
Expand All @@ -52,7 +51,7 @@ export default function HeaderWeb({
)}
</BottomTabLink>
<View>
<BottomTabLink to={BottomRoot.Account} params={{}}>
<BottomTabLink to={BottomRoots.Account} params={{}}>
{({ isSelected, ...linkProps }) => (
<IconButton
{...linkProps}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"clean": "del-cli lib",
"prepare": "bob build",
"release": "release-it --ci",
"build-example": "cd example && yarn web:before && yarn web:build"
"build-example": "cd example && yarn web:build"
},
"keywords": [
"react-native",
Expand Down

0 comments on commit d096c0c

Please sign in to comment.