File tree Expand file tree Collapse file tree 4 files changed +72
-3
lines changed
Expand file tree Collapse file tree 4 files changed +72
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import { useSharedValue } from 'react-native-reanimated';
66import { SafeAreaProvider } from 'react-native-safe-area-context' ;
77import { BottomTab } from './src/components/bottom-tab' ;
88import { CircularDraggableSlider , CircularDraggableSliderRefType } from './src/components/circle-time' ;
9+ import { Header } from "./src/components/header" ;
10+ import { Queued } from "./src/components/queued" ;
911import { TimeRange } from './src/components/time-range' ;
1012
1113const LinesAmount = 200 ;
@@ -16,12 +18,13 @@ export default function App() {
1618
1719 const circularSliderRef = useRef < CircularDraggableSliderRefType > ( null ) ;
1820 const selectedDuration = useSharedValue ( 1 ) ;
19-
2021 return (
2122 < SafeAreaProvider >
2223 < FontsProvider >
2324 < GestureHandlerRootView style = { styles . fill } >
24- < View style = { { flex : 1 } } >
25+ < View style = { [ styles . fill ] } >
26+ < Header />
27+ < Queued />
2528 < View style = { styles . container } >
2629 < CircularDraggableSlider
2730 ref = { circularSliderRef }
@@ -75,7 +78,8 @@ const FontsProvider = ({ children }: { children: React.ReactNode }) => {
7578
7679const styles = StyleSheet . create ( {
7780 fill : {
78- flex : 1
81+ flex : 1 ,
82+ backgroundColor : '#000' ,
7983 } ,
8084 button : {
8185 alignItems : 'center' ,
Original file line number Diff line number Diff line change 1+ import { FontAwesome } from "@expo/vector-icons" ;
2+ import { Image , Text , View } from "react-native" ;
3+ import { useSafeAreaInsets } from "react-native-safe-area-context" ;
4+
5+
6+
7+ export const Header = ( ) => {
8+ const { top } = useSafeAreaInsets ( )
9+ return < View style = { {
10+ flexDirection : "row" ,
11+ justifyContent : "space-between" ,
12+ marginTop : top ,
13+ paddingHorizontal : 16 ,
14+ paddingBottom : 16 ,
15+ borderBottomWidth : 1 ,
16+ borderBottomColor : "#374151" ,
17+ } } >
18+ < Text style = { {
19+ color : "#fff" ,
20+ fontSize : 16 ,
21+ fontWeight : "600" ,
22+ fontFamily : 'SF-Pro-Rounded-Bold' ,
23+ position : "absolute" ,
24+ left : 0 ,
25+ right : 0 ,
26+ bottom : 18 ,
27+ textAlign : "center"
28+ } } > Landing page 1</ Text >
29+ < View style = { {
30+ alignItems : "center" ,
31+ flexDirection : "row" ,
32+ columnGap : 6
33+ } } >
34+ < Image source = { require ( "../../../assets/images/avatar.jpg" ) } style = { {
35+ width : 32 ,
36+ height : 32 ,
37+ borderRadius : 20 ,
38+ } } />
39+ < FontAwesome name = "chevron-down" size = { 14 } color = "#424446" />
40+
41+ </ View >
42+ < View style = { {
43+ width : 32 ,
44+ height : 32 ,
45+ borderRadius : 12 ,
46+ backgroundColor : "#42444670" ,
47+ justifyContent : "center" ,
48+ alignItems : "center" ,
49+ } } >
50+ < FontAwesome name = "bell" size = { 14 } color = "#63666aff" />
51+ </ View >
52+
53+ </ View > ;
54+ } ;
Original file line number Diff line number Diff line change 1+ import { View } from "react-native"
2+
3+
4+
5+ export const Queued = ( ) => {
6+ return (
7+ < View sty >
8+
9+ </ View >
10+ )
11+ }
You can’t perform that action at this time.
0 commit comments