A few changes:
Auto fill amount category edit Empty list component calendar filtering in category screen, expenses can be added directly
This commit is contained in:
parent
e0f3cf947c
commit
8149ec234f
10 changed files with 97 additions and 42 deletions
|
|
@ -6,6 +6,7 @@ import CategoryListItem from '../common/CategoryListItem';
|
|||
import { SIZES } from '../../constants/theme';
|
||||
import useFetch from '../../hooks/useFetch';
|
||||
import TextInputBar from '../common/TextInputBar';
|
||||
import EmptyListCompenent from '../common/EmptyListCompenent';
|
||||
|
||||
|
||||
interface CategorySelectorModalProps{
|
||||
|
|
@ -43,7 +44,7 @@ const CategorySelectorModal: React.FC<CategorySelectorModalProps> = (props : Cat
|
|||
}, [visible])
|
||||
|
||||
return (
|
||||
<Modal visible={visible} transparent={true} onRequestClose={props.onRequestClose}>
|
||||
<Modal visible={visible} transparent={true} onRequestClose={props.onRequestClose} animationType='slide'>
|
||||
<View style={styles.main}>
|
||||
<View style={[styles.modal, {backgroundColor: colors.containerColor}]}>
|
||||
<View>
|
||||
|
|
@ -57,6 +58,7 @@ const CategorySelectorModal: React.FC<CategorySelectorModalProps> = (props : Cat
|
|||
ItemSeparatorComponent={() => <View style={styles.itemSeperatorStyle}/>}
|
||||
ListFooterComponent={() => <View style={styles.itemSeperatorStyle}/>}
|
||||
keyboardShouldPersistTaps="always"
|
||||
ListEmptyComponent={EmptyListCompenent}
|
||||
>
|
||||
</FlatList>
|
||||
|
||||
|
|
|
|||
Reference in a new issue