Show calendar

This commit is contained in:
Maarten 2024-08-08 10:08:11 +02:00
parent f3e6ed60ff
commit f9a78a5c37
4 changed files with 74 additions and 33 deletions

View file

@ -1,12 +1,14 @@
import {StyleSheet, View} from 'react-native';
import React from 'react';
import {ViewStyle} from 'react-native';
import {ThemedView} from '@/components/ThemedView';
interface ListProps {
data: any;
renderItem: Function;
viewStyle?: ViewStyle;
}
const CustomList: React.FC<ListProps> = ({ data, renderItem }) => {
const CustomList: React.FC<ListProps> = ({ data, renderItem, viewStyle }) => {
const renderList = () => {
let list: any[] = [];
@ -20,9 +22,9 @@ const CustomList: React.FC<ListProps> = ({ data, renderItem }) => {
};
return (
<View>
<ThemedView style={viewStyle ? viewStyle : undefined}>
{renderList()}
</View>
</ThemedView>
);
};