-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade testflight demo with bottom-tabs and move to apps folder
- Loading branch information
Showing
56 changed files
with
118 additions
and
81 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 6 additions & 15 deletions
21
...estflight/code/home/HomeLayout.native.tsx → ...estflight/code/home/HomeLayout.native.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,32 @@ | ||
import { Tabs } from 'one' | ||
import { NativeTabs } from '../layouts/BottomTabs' | ||
import { HomeIcons } from './HomeIcons' | ||
import { useTheme } from 'tamagui' | ||
|
||
export function HomeLayout() { | ||
const theme = useTheme() | ||
|
||
return ( | ||
<Tabs | ||
screenOptions={{ | ||
headerShown: false, | ||
tabBarActiveTintColor: theme.accentColor.val, | ||
tabBarInactiveTintColor: theme.gray9.val, | ||
}} | ||
> | ||
<Tabs.Screen | ||
<NativeTabs> | ||
<NativeTabs.Screen | ||
name="index" | ||
options={{ | ||
title: 'Feed', | ||
tabBarIcon: ({ color }) => <HomeIcons.Home size={20} color={color} />, | ||
}} | ||
/> | ||
|
||
<Tabs.Screen | ||
<NativeTabs.Screen | ||
name="notifications" | ||
options={{ | ||
title: 'Notifications', | ||
tabBarIcon: ({ color }) => <HomeIcons.Notifications size={20} color={color} />, | ||
}} | ||
/> | ||
|
||
<Tabs.Screen | ||
<NativeTabs.Screen | ||
name="profile" | ||
options={{ | ||
title: 'Profile', | ||
tabBarIcon: ({ color }) => <HomeIcons.User size={20} color={color} />, | ||
}} | ||
/> | ||
</Tabs> | ||
</NativeTabs> | ||
) | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { withLayoutContext } from 'one' | ||
import { | ||
createNativeBottomTabNavigator, | ||
type NativeBottomTabNavigationEventMap, | ||
} from 'react-native-bottom-tabs/react-navigation' | ||
|
||
import type { BottomTabNavigationOptions } from '@react-navigation/bottom-tabs' | ||
|
||
import type { ParamListBase, TabNavigationState } from '@react-navigation/native' | ||
|
||
const { Navigator } = createNativeBottomTabNavigator() | ||
|
||
export const NativeTabs = withLayoutContext< | ||
BottomTabNavigationOptions, | ||
typeof Navigator, | ||
TabNavigationState<ParamListBase>, | ||
NativeBottomTabNavigationEventMap | ||
>(Navigator) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
packages/vxrn/types/plugins/autoPreBundleDepsForSsrPlugin.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters