reduce section header height

This commit is contained in:
ammarahm-ed
2021-01-05 10:29:00 +05:00
parent 5f32389f02
commit 3205013383
3 changed files with 13 additions and 12 deletions

View File

@@ -68,7 +68,7 @@ const SimpleList = ({
useEffect(() => {
loadData();
}, [data, searchResults.results,loading]);
}, [data, searchResults.results, loading]);
const loadData = () => {
if (loading) return;
@@ -86,7 +86,7 @@ const SimpleList = ({
width: '100%',
justifyContent: 'space-between',
paddingHorizontal: 12,
height: 35,
height: 30,
backgroundColor:
index === 1
? headerProps.color

View File

@@ -1,13 +1,13 @@
import React, {useEffect, useState} from 'react';
import {Keyboard, Text, TouchableOpacity, View} from 'react-native';
import Animated, {Easing, useValue} from 'react-native-reanimated';
import React, { useEffect, useState } from 'react';
import { Keyboard, TouchableOpacity, View } from 'react-native';
import Animated, { Easing, useValue } from 'react-native-reanimated';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {useTracked} from '../../provider';
import {DDS} from '../../services/DeviceDetection';
import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';
import {dHeight, getElevation} from '../../utils';
import {eHideToast, eShowToast} from '../../utils/Events';
import {sleep} from '../../utils/TimeUtils';
import { useTracked } from '../../provider';
import { DDS } from '../../services/DeviceDetection';
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
import { dHeight, getElevation } from '../../utils';
import { eHideToast, eShowToast } from '../../utils/Events';
import { sleep } from '../../utils/TimeUtils';
import Paragraph from '../Typography/Paragraph';
const {timing} = Animated;

View File

@@ -205,7 +205,8 @@ const SectionHeader = ({title}) => {
style={{
textAlignVertical: 'center',
paddingHorizontal: 12,
height: 35,
height: 30,
backgroundColor:colors.nav
}}>
{title}
</Heading>