Show calendar
This commit is contained in:
parent
f3e6ed60ff
commit
f9a78a5c37
4 changed files with 74 additions and 33 deletions
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue