Profile Settings

This commit is contained in:
Adolfo Reyna
2022-12-23 00:17:36 -05:00
parent 4c95095882
commit bf0807ba8c
5 changed files with 90 additions and 36 deletions

View File

@@ -40,12 +40,11 @@ const Search = () => {
return (<ProfileCardHorizontal profileid={item} />);
});
return (
<SafeAreaView style={{ flex: 1 }}>
<SafeAreaView style={{ flex: 1, backgroundColor: "#edf2f7", }}>
<Searchbar
placeholder="Search Users"
onChangeText={onChangeSearch}
value={searchQuery}
elevation={3}
/>
{
searchQuery.length ?
@@ -56,16 +55,14 @@ const Search = () => {
renderItem={renderProfile}
keyExtractor={item => item._id}
/> :
<>
<Text>Current Following:</Text>
<FlatList
contentContainerStyle={styles.container}
numColumns={1}
data={viewer.following}
renderItem={renderFollowing}
keyExtractor={item => item}
ListHeaderComponent={<Text style={{fontSize:20, padding:10, alignSelf: "center"}}>Current Following</Text>}
/>
</>
}
</SafeAreaView>
)