-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { icons } from "@/constants" | ||
import { router } from "expo-router" | ||
import { Image, Text, TouchableOpacity, View } from "react-native" | ||
import { GestureHandlerRootView } from "react-native-gesture-handler" | ||
import Map from "@/components/map"; | ||
|
||
const RideLayout = ({ title, children }: { title: string, children: React.ReactNode }) => { | ||
return ( | ||
<GestureHandlerRootView> | ||
<View className="flex-1 bg-white"> | ||
<View className="flex flex-col h-screen bg-blue-500"> | ||
<View className="flex flex-row absolute z-10 top-16 items-center justify-start px-5"> | ||
<TouchableOpacity onPress={() => router.back()}> | ||
<View className="w-10 h-10 bg-white rounded-full items-center justify-center"> | ||
<Image source={icons.backArrow} resizeMode="contain" className="w-6 h-6" /> | ||
</View> | ||
</TouchableOpacity> | ||
<Text className="text-xl font-JakartaSemiBold"> | ||
{title||"Go Back"} | ||
</Text> | ||
|
||
</View> | ||
<Map/> | ||
</View> | ||
</View> | ||
</GestureHandlerRootView> | ||
) | ||
|
||
} | ||
export default RideLayout |