-
Notifications
You must be signed in to change notification settings - Fork 4
/
App.tsx
38 lines (36 loc) · 1.31 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import * as React from 'react';
import { useState } from 'react';
import { StatusBar } from 'react-native';
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
import {
IAppointment,
TimeSlotPicker,
} from '@dgreasi/react-native-time-slot-picker';
import { SelectedTimeSlot } from './SelectedTimeSlot';
import { bookedData, dummyAvailableDates } from './data';
export default function App() {
const [dateOfAppointment, setDateOfAppointment] =
useState<IAppointment | null>(null);
return (
<SafeAreaProvider>
<SafeAreaView>
<StatusBar backgroundColor="transparent" barStyle="dark-content" />
<TimeSlotPicker
setDateOfAppointment={setDateOfAppointment}
scheduledAppointment={bookedData}
availableDates={dummyAvailableDates}
// marginTop={24}
// datePickerBackgroundColor="#F4CC58"
// timeSlotsBackgroundColor="#F4CC58"
// mainColor="#B4CC51"
// timeSlotWidth={116}
// dayNamesOverride={greekDayNames}
// monthNamesOverride={greekMonthNames}
// dayNamesOverride={spanishDayNames}
// monthNamesOverride={spanishMonthNames}
/>
<SelectedTimeSlot dateOfAppointment={dateOfAppointment} />
</SafeAreaView>
</SafeAreaProvider>
);
}