tambahan
This commit is contained in:
14
app/(application)/_layout.tsx
Normal file
14
app/(application)/_layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Headers } from "@/constants/Headers";
|
||||
import { Stack } from "expo-router";
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
|
||||
export default function RootLayout() {
|
||||
return (
|
||||
<>
|
||||
<Stack screenOptions={Headers.shadow}>
|
||||
<Stack.Screen name="home" options={{ title: 'Home' }} />
|
||||
</Stack>
|
||||
<StatusBar style="light" />
|
||||
</>
|
||||
)
|
||||
}
|
||||
22
app/(application)/home.tsx
Normal file
22
app/(application)/home.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import CaraouselHome from "@/components/home/carouselHome";
|
||||
import { HeaderRightHome } from "@/components/home/headerRightHome";
|
||||
import { Stack } from "expo-router";
|
||||
import { SafeAreaView, ScrollView } from "react-native";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<SafeAreaView>
|
||||
<Stack.Screen
|
||||
options={{
|
||||
title: 'Home',
|
||||
headerLeft: () => <></>,
|
||||
headerTitle: 'Darmasaba',
|
||||
headerRight: () => <HeaderRightHome />
|
||||
}}
|
||||
/>
|
||||
<ScrollView>
|
||||
<CaraouselHome/>
|
||||
</ScrollView>
|
||||
</SafeAreaView>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user