aboutsummaryrefslogtreecommitdiff
path: root/src/components/search
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-03-12 11:24:43 -0800
committerShravya Ramesh <shravs1208@gmail.com>2021-03-12 11:24:43 -0800
commit3c1e9ee07e6cc09cf9ac4d28fb9615e8e36ed14c (patch)
tree834836f0c9690851badac779a905b76b59b607ea /src/components/search
parent467f437492c431923e131573fd6963fa08cf4263 (diff)
Defined specific width
Diffstat (limited to 'src/components/search')
-rw-r--r--src/components/search/SearchResultCell.tsx1
-rw-r--r--src/components/search/SearchResultList.tsx6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/components/search/SearchResultCell.tsx b/src/components/search/SearchResultCell.tsx
index 5cba6d2f..6954ff8c 100644
--- a/src/components/search/SearchResultCell.tsx
+++ b/src/components/search/SearchResultCell.tsx
@@ -172,6 +172,7 @@ const styles = StyleSheet.create({
flexDirection: 'row',
paddingHorizontal: 25,
paddingVertical: 15,
+ width: SCREEN_WIDTH,
},
imageContainer: {
width: SCREEN_WIDTH * 0.112,
diff --git a/src/components/search/SearchResultList.tsx b/src/components/search/SearchResultList.tsx
index d8cf02d9..2a4d3746 100644
--- a/src/components/search/SearchResultList.tsx
+++ b/src/components/search/SearchResultList.tsx
@@ -51,7 +51,7 @@ const SearchResultList: React.FC<SearchResultsProps> = ({
{width: SCREEN_WIDTH},
keyboardVisible ? styles.keyboardOpen : {},
]}
- contentContainerStyle={{paddingBottom: SCREEN_HEIGHT * 0.1}}
+ contentContainerStyle={styles.sectionListContentContainer}
sections={results}
keyExtractor={(item, index) => item.id + index}
renderItem={({section, item}) => {
@@ -77,6 +77,10 @@ const styles = StyleSheet.create({
height: SCREEN_HEIGHT,
paddingBottom: SCREEN_HEIGHT * 0.1,
},
+ sectionListContentContainer: {
+ paddingBottom: SCREEN_HEIGHT * 0.15,
+ width: SCREEN_WIDTH,
+ },
sectionHeaderStyle: {
width: '100%',
height: 0.5,