mirror of
https://github.com/andwati/blog-nest.git
synced 2026-11-18 10:25:12 +00:00
- Added pnpm-workspace.yaml to manage workspace packages and dependencies. - Created tsconfig.json with strict TypeScript settings for better type safety. - Introduced turbo.json to define build, lint, test, and other tasks with dependencies.
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import { NativeTabs } from 'expo-router/unstable-native-tabs'
|
|
import { useColorScheme } from 'react-native'
|
|
|
|
import { Colors } from '@/constants/theme'
|
|
|
|
export default function AppTabs() {
|
|
const scheme = useColorScheme()
|
|
const colors = Colors[scheme === 'unspecified' ? 'light' : scheme]
|
|
|
|
return (
|
|
<NativeTabs
|
|
backgroundColor={colors.background}
|
|
indicatorColor={colors.backgroundElement}
|
|
labelStyle={{ selected: { color: colors.text } }}
|
|
>
|
|
<NativeTabs.Trigger name="index">
|
|
<NativeTabs.Trigger.Label>Home</NativeTabs.Trigger.Label>
|
|
<NativeTabs.Trigger.Icon
|
|
src={require('@/assets/images/tabIcons/home.png')}
|
|
renderingMode="template"
|
|
/>
|
|
</NativeTabs.Trigger>
|
|
|
|
<NativeTabs.Trigger name="explore">
|
|
<NativeTabs.Trigger.Label>Explore</NativeTabs.Trigger.Label>
|
|
<NativeTabs.Trigger.Icon
|
|
src={require('@/assets/images/tabIcons/explore.png')}
|
|
renderingMode="template"
|
|
/>
|
|
</NativeTabs.Trigger>
|
|
</NativeTabs>
|
|
)
|
|
}
|