u
This commit is contained in:
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>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user