ui developer
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
|||||||
FlatList,
|
FlatList,
|
||||||
ListRenderItem,
|
ListRenderItem,
|
||||||
ToastAndroid,
|
ToastAndroid,
|
||||||
|
ScrollView,
|
||||||
} from "react-native";
|
} from "react-native";
|
||||||
import AppView from "../../components/AppView";
|
import AppView from "../../components/AppView";
|
||||||
import colors from "../../components/colors";
|
import colors from "../../components/colors";
|
||||||
@@ -182,7 +183,8 @@ const Home: React.FC = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AppView barStyle="dark-content" style={styles.container}>
|
// <AppView barStyle="dark-content" style={styles.container}>
|
||||||
|
<ScrollView style={styles.container}>
|
||||||
<View style={styles.header}>
|
<View style={styles.header}>
|
||||||
<View>
|
<View>
|
||||||
<Text style={styles.greeting}>Hello,</Text>
|
<Text style={styles.greeting}>Hello,</Text>
|
||||||
@@ -196,7 +198,12 @@ const Home: React.FC = () => {
|
|||||||
|
|
||||||
<UserProfileStatus profileImage={getProfileImageUri()} />
|
<UserProfileStatus profileImage={getProfileImageUri()} />
|
||||||
|
|
||||||
|
<View style={{ justifyContent: 'space-between', flexDirection: 'row', alignItems: 'center', marginTop: 20, marginBottom: 10 }}>
|
||||||
<Text style={styles.sectionTitle}>Quick Actions</Text>
|
<Text style={styles.sectionTitle}>Quick Actions</Text>
|
||||||
|
<TouchableOpacity style={{ padding: 8 , backgroundColor: colors.primary , marginRight: 15}} onPress={() => Alert.alert('Info', 'This will allow you to pay all pending contributions in your groups.')}>
|
||||||
|
<Text style={{ fontSize: 14, color: '#fff', fontWeight: 'bold' }}>Pay All</Text>
|
||||||
|
</TouchableOpacity>
|
||||||
|
</View>
|
||||||
|
|
||||||
<FlatList
|
<FlatList
|
||||||
data={actions}
|
data={actions}
|
||||||
@@ -205,14 +212,7 @@ const Home: React.FC = () => {
|
|||||||
numColumns={2}
|
numColumns={2}
|
||||||
contentContainerStyle={{ paddingHorizontal: 8 }}
|
contentContainerStyle={{ paddingHorizontal: 8 }}
|
||||||
/>
|
/>
|
||||||
{/* <CustomAlert
|
</ScrollView>
|
||||||
visible={alartVisible}
|
|
||||||
title={alartAction?.title as string}
|
|
||||||
buttons={alartAction?.buttons}
|
|
||||||
message={alartAction?.message as string}
|
|
||||||
alertType={'error'}
|
|
||||||
/> */}
|
|
||||||
</AppView>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -222,6 +222,8 @@ const styles = StyleSheet.create({
|
|||||||
container: {
|
container: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
backgroundColor: colors.white, // Set background to white
|
backgroundColor: colors.white, // Set background to white
|
||||||
|
marginBottom: 100,
|
||||||
|
padding:10
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user