Initial commit: OpenCode mobile app (extracted from opencode monorepo)
This commit is contained in:
47
app/(tabs)/_layout.tsx
Normal file
47
app/(tabs)/_layout.tsx
Normal file
@@ -0,0 +1,47 @@
|
||||
import { Tabs } from "expo-router"
|
||||
import { useColorScheme } from "react-native"
|
||||
import { Ionicons } from "@expo/vector-icons"
|
||||
|
||||
export default function TabLayout() {
|
||||
const colorScheme = useColorScheme()
|
||||
const isDark = colorScheme === "dark"
|
||||
|
||||
return (
|
||||
<Tabs
|
||||
screenOptions={{
|
||||
tabBarActiveTintColor: isDark ? "#ffffff" : "#0a0a0a",
|
||||
tabBarInactiveTintColor: isDark ? "#666666" : "#999999",
|
||||
tabBarStyle: {
|
||||
backgroundColor: isDark ? "#0a0a0a" : "#ffffff",
|
||||
borderTopColor: isDark ? "#1a1a1a" : "#e5e5e5",
|
||||
},
|
||||
headerStyle: {
|
||||
backgroundColor: isDark ? "#0a0a0a" : "#ffffff",
|
||||
},
|
||||
headerTintColor: isDark ? "#ffffff" : "#0a0a0a",
|
||||
}}
|
||||
>
|
||||
<Tabs.Screen
|
||||
name="index"
|
||||
options={{
|
||||
title: "Sessions",
|
||||
tabBarIcon: ({ color, size }) => <Ionicons name="chatbubbles-outline" size={size} color={color} />,
|
||||
}}
|
||||
/>
|
||||
<Tabs.Screen
|
||||
name="connections"
|
||||
options={{
|
||||
title: "Connections",
|
||||
tabBarIcon: ({ color, size }) => <Ionicons name="server-outline" size={size} color={color} />,
|
||||
}}
|
||||
/>
|
||||
<Tabs.Screen
|
||||
name="settings"
|
||||
options={{
|
||||
title: "Settings",
|
||||
tabBarIcon: ({ color, size }) => <Ionicons name="settings-outline" size={size} color={color} />,
|
||||
}}
|
||||
/>
|
||||
</Tabs>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user