diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 0801975..6fbf346 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/example/package.json b/example/package.json index 5956e06..0427fa5 100644 --- a/example/package.json +++ b/example/package.json @@ -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", diff --git a/example/src/App.tsx b/example/src/App.tsx index 37e3f24..2cfbad8 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -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); @@ -96,7 +97,7 @@ const navigationRoot = { { breakingPointWidth: 600, components: { - // override: HeaderWeb, + override: AppWebLayout, start: ({ orientation }) => { if (orientation === 'vertical') { return null; diff --git a/example/src/HeaderWeb.tsx b/example/src/AppWebLayout.tsx similarity index 88% rename from example/src/HeaderWeb.tsx rename to example/src/AppWebLayout.tsx index d2fb821..d99a1b2 100644 --- a/example/src/HeaderWeb.tsx +++ b/example/src/AppWebLayout.tsx @@ -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, @@ -29,7 +28,7 @@ export default function HeaderWeb({ Logo - + {({ isSelected, ...linkProps }) => (