diff options
author | Ivan Chen <ivan@tagg.id> | 2021-03-06 13:56:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-06 13:56:57 -0500 |
commit | 7e5f9c63360f8c4505bb414384e13f8c0f7576e4 (patch) | |
tree | 1e129a8f64515750771e49f07f7115e4f5886701 /src | |
parent | 3c38b38e0d3b2946a84c3d3bfd32cd223095e63d (diff) | |
parent | 5015ecd9f7149fdfa6b4d4611cacffb16743d8dc (diff) |
Merge pull request #284 from IvanIFChen/hotfix-discover-users-layout
[HOTFIX] Discover Users Layout Fix
Diffstat (limited to 'src')
-rw-r--r-- | src/components/search/ExploreSectionUser.tsx | 1 | ||||
-rw-r--r-- | src/screens/search/DiscoverUsers.tsx | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/components/search/ExploreSectionUser.tsx b/src/components/search/ExploreSectionUser.tsx index 6be8282b..d8c92be2 100644 --- a/src/components/search/ExploreSectionUser.tsx +++ b/src/components/search/ExploreSectionUser.tsx @@ -94,6 +94,7 @@ const styles = StyleSheet.create({ container: { alignItems: 'center', width: 100, + paddingVertical: 10, }, gradient: { height: 62, diff --git a/src/screens/search/DiscoverUsers.tsx b/src/screens/search/DiscoverUsers.tsx index a1b3322a..e570edce 100644 --- a/src/screens/search/DiscoverUsers.tsx +++ b/src/screens/search/DiscoverUsers.tsx @@ -2,7 +2,7 @@ import React, {useEffect, useState} from 'react'; import {FlatList, StatusBar, StyleSheet} from 'react-native'; import {Text} from 'react-native-animatable'; import {SafeAreaView} from 'react-native-safe-area-context'; -import {HeaderHeight, SCREEN_WIDTH} from '../../utils'; +import {HeaderHeight, SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; import {SearchBackground, TabsGradient} from '../../components'; import {RouteProp} from '@react-navigation/native'; import {MainStackParams} from '../../routes'; @@ -67,6 +67,7 @@ const styles = StyleSheet.create({ scrollView: { top: HeaderHeight, width: SCREEN_WIDTH * 0.95, + height: SCREEN_HEIGHT - HeaderHeight, alignSelf: 'center', flexDirection: 'column', }, @@ -79,7 +80,7 @@ const styles = StyleSheet.create({ }, contentContainerStyle: { width: SCREEN_WIDTH * 0.95, - paddingBottom: 30, + paddingBottom: SCREEN_HEIGHT * 0.2, }, }); |