aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-03-05 11:50:55 -0800
committerShravya Ramesh <shravs1208@gmail.com>2021-03-05 11:50:55 -0800
commit2e2e56595b8b085b3cbc84d9125969ae22092443 (patch)
tree3b21bec4bbcdeaaedb7223652d12f318e3d3a038 /src/components
parent7d883c5946214c91b922b2c5eb310203dec02025 (diff)
styling, passing in title too
Diffstat (limited to 'src/components')
-rw-r--r--src/components/search/ExploreSection.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/search/ExploreSection.tsx b/src/components/search/ExploreSection.tsx
index 53073a9e..784e089c 100644
--- a/src/components/search/ExploreSection.tsx
+++ b/src/components/search/ExploreSection.tsx
@@ -21,7 +21,13 @@ const ExploreSection: React.FC<ExploreSectionProps> = ({title, users}) => {
data={users}
ListHeaderComponent={<View style={styles.padding} />}
renderItem={({item: user}: {item: ProfilePreviewType}) => (
- <ExploreSectionUser key={user.id} user={user} style={styles.user} />
+ <ExploreSectionUser
+ key={user.id}
+ user={user}
+ externalStyles={StyleSheet.create({
+ container: styles.user,
+ })}
+ />
)}
showsHorizontalScrollIndicator={false}
horizontal