diff --git a/LeftOvers/components/HeaderFlatList.tsx b/LeftOvers/components/HeaderFlatList.tsx new file mode 100644 index 0000000..ec1c244 --- /dev/null +++ b/LeftOvers/components/HeaderFlatList.tsx @@ -0,0 +1,45 @@ +import React from 'react'; +import {StyleSheet, Text, TextInput, View, Image, FlatList} from 'react-native'; + +type TitleProps = { + title: string +} + +export default function ListTab(props: TitleProps) { + return ( + + {props.title} + + + ); +} + +const styles = StyleSheet.create({ + titleBar: { + flexDirection: "row", + alignItems: "center", + justifyContent: "stretch", + backgroundColor: "#F2F0E4", + borderTopRightRadius: 15, + borderTopLeftRadius: 15, + borderWidth: 2, + borderColor: "#ACA279", + width: 250, + }, + arrow: { + height: 20, + width: 20, + resizeMode: 'contain', + tintColor: "#3F3C42", + flex: 0.1, + }, + title: { + fontSize: 12, + color: '#3F3C42', + alignItems: 'center', + justifyContent: 'left', + textAlign: "left", + flex: 0.9, + padding: 5, + }, +}); \ No newline at end of file diff --git a/LeftOvers/components/ListTab.tsx b/LeftOvers/components/ListTab.tsx index cf12db7..b9498ca 100644 --- a/LeftOvers/components/ListTab.tsx +++ b/LeftOvers/components/ListTab.tsx @@ -1,6 +1,7 @@ import React from 'react'; import {StyleSheet, Text, TextInput, View, Image, FlatList} from 'react-native'; import ValidateButton from './ValidateButton'; +import HeaderFlatList from './HeaderFlatList'; type ListProps = { title: string @@ -18,12 +19,8 @@ const Item = ({title}: ItemProps) => ( export default function ListTab(props: ListProps) { return ( - - {props.title} - - - }/> + } ListHeaderComponent={}/> ); @@ -36,6 +33,7 @@ const styles = StyleSheet.create({ justifyContent: 'center', borderRadius: 15, backgroundColor: '#E3DEC9', + marginBottom: 20, }, titleBar: { flexDirection: "row",