aboutsummaryrefslogtreecommitdiff
path: root/src/components/search
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-20 17:16:46 -0400
committerIvan Chen <ivan@tagg.id>2021-04-20 17:21:46 -0400
commitbae0136cb1939302b758249a1978251bd37aaee8 (patch)
tree8788895fe72bef062a4de3b3b8e245d091dc3c1f /src/components/search
parent5ff7cab4bd36337b2c86e3d4915a6fc3ceef1ddb (diff)
linted
Diffstat (limited to 'src/components/search')
-rw-r--r--src/components/search/SearchResultList.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/search/SearchResultList.tsx b/src/components/search/SearchResultList.tsx
index a32760e1..dab447fb 100644
--- a/src/components/search/SearchResultList.tsx
+++ b/src/components/search/SearchResultList.tsx
@@ -32,6 +32,7 @@ const sectionHeader: React.FC<Boolean> = (showBorder: Boolean) => {
const SearchResultList: React.FC<SearchResultsProps> = ({results}) => {
const [showEmptyView, setshowEmptyView] = useState<boolean>(false);
const {user: loggedInUser} = useSelector((state: RootState) => state.user);
+ const tabBarHeight = useBottomTabBarHeight();
useEffect(() => {
if (results && results.length > 0) {
@@ -50,7 +51,7 @@ const SearchResultList: React.FC<SearchResultsProps> = ({results}) => {
) : (
<SectionList
onScrollBeginDrag={Keyboard.dismiss}
- contentContainerStyle={[{paddingBottom: useBottomTabBarHeight()}]}
+ contentContainerStyle={[{paddingBottom: tabBarHeight}]}
sections={results}
keyExtractor={(item, index) => item.id + index}
renderItem={({item}) => {