mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 17:11:17 +00:00
- Expo SDK 54 / React Native 0.81 with expo-router - Tailscale devcontainer feature for direct device connectivity - Dev proxy for React Native DevTools access over Tailscale - EAS build configuration for development/preview/production - Ona automation for Expo dev server Co-authored-by: Ona <no-reply@ona.com>
37 lines
882 B
TypeScript
37 lines
882 B
TypeScript
import { Tabs } from "expo-router"
|
|
import React from "react"
|
|
|
|
import { HapticTab } from "@/components/haptic-tab"
|
|
import { IconSymbol } from "@/components/ui/icon-symbol"
|
|
import { Colors } from "@/constants/theme"
|
|
import { useColorScheme } from "@/hooks/use-color-scheme"
|
|
|
|
export default function TabLayout() {
|
|
const colorScheme = useColorScheme()
|
|
|
|
return (
|
|
<Tabs
|
|
screenOptions={{
|
|
tabBarActiveTintColor: Colors[colorScheme ?? "light"].tint,
|
|
headerShown: false,
|
|
tabBarButton: HapticTab,
|
|
}}
|
|
>
|
|
<Tabs.Screen
|
|
name="index"
|
|
options={{
|
|
title: "Home",
|
|
tabBarIcon: ({ color }) => <IconSymbol size={28} name="house.fill" color={color} />,
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="explore"
|
|
options={{
|
|
title: "Explore",
|
|
tabBarIcon: ({ color }) => <IconSymbol size={28} name="paperplane.fill" color={color} />,
|
|
}}
|
|
/>
|
|
</Tabs>
|
|
)
|
|
}
|