diff options
| author | Shravya Ramesh <shravs1208@gmail.com> | 2021-03-05 11:50:55 -0800 |
|---|---|---|
| committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-03-05 11:50:55 -0800 |
| commit | 2e2e56595b8b085b3cbc84d9125969ae22092443 (patch) | |
| tree | 3b21bec4bbcdeaaedb7223652d12f318e3d3a038 /src/components | |
| parent | 7d883c5946214c91b922b2c5eb310203dec02025 (diff) | |
styling, passing in title too
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/search/ExploreSection.tsx | 8 |
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 |
