Profile Settings
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user