This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
-
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
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
import { Text, View } from "react-native"; | ||
import { useRef } from "react"; | ||
import { Text, TouchableOpacity, View } from "react-native"; | ||
import RBSheet from "react-native-raw-bottom-sheet"; | ||
|
||
export const UserLocation = () => { | ||
const refRBSheet = useRef<RBSheet>(null); | ||
|
||
return ( | ||
<View className="flex flex-col"> | ||
<Text className="text-sm font-bold text-black">24 rue Émile Zola - 76100 Rouen</Text> | ||
<Text className="text-xs text-black/60">mercredi 18 janvier - 12:15 - 12:35</Text> | ||
</View> | ||
<> | ||
<TouchableOpacity onPress={() => refRBSheet.current?.open()} className="flex flex-col"> | ||
<Text className="text-sm font-bold text-black">24 rue Émile Zola - 76100 Rouen</Text> | ||
<Text className="text-xs text-black/60">mercredi 18 janvier - 12:15 - 12:35</Text> | ||
</TouchableOpacity> | ||
<RBSheet ref={refRBSheet} closeOnDragDown closeOnPressMask> | ||
<View className="absolute flex items-center flex-1 w-full h-full bg-white"> | ||
<Text>Awesome 🎉</Text> | ||
</View> | ||
</RBSheet> | ||
</> | ||
); | ||
}; |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/// <reference types="expo-router/types" /> | ||
|
||
// NOTE: This file should not be edited and should be in your git ignore | ||
// NOTE: This file should not be edited and should be in your git ignore | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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