import React from 'react'; import { StyleSheet, View } from 'react-native'; import { Button, Calendar, CalendarProps, Divider } from '@ui-kitten/components'; interface AdditionalProps { withFooter?: boolean; } export const CalendarShowcase = ({ withFooter, ...props }: CalendarProps & AdditionalProps): React.ReactElement => { const calendarRef: React.RefObject = React.useRef(); const [date, setDate] = React.useState(props.date); const onTodayPress = (): void => { calendarRef.current.scrollToToday(); }; const renderFooterElement = (): React.ReactElement => ( ); return ( ); }; const styles = StyleSheet.create({ footerContainer: { paddingHorizontal: 8, flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-end', }, footerDivider: { marginVertical: 12, }, });