This commit is contained in:
oneao committed 2025-11-03 21:49:49 +08:00
1 parent 2347d55823
commit c0ff3ce883
6 files changed
+29 -6

No files matched your search

@@ -0,0 +1,21 @@
import { useRouter } from 'expo-router'
// components/Layout.tsx
import { Pressable, Text, View } from 'react-native'
import { SafeAreaView } from 'react-native-safe-area-context'
interface LayoutProps {
title: string
children: React.ReactNode
showBack?: boolean
right?: React.ReactNode
}
export default function CustomLayout({ title, children, showBack = true, right }: LayoutProps) {
const router = useRouter()
return (
<View className="flex-1">
{children}
</View>
)
}