remove SearchInput

This commit is contained in:
ammarahm-ed
2020-11-09 18:13:47 +05:00
parent 36959654f1
commit 1deaeba10e
7 changed files with 47 additions and 100 deletions

View File

@@ -7,7 +7,6 @@ import {
useWindowDimensions,
View,
} from 'react-native';
import {useSafeAreaInsets} from 'react-native-safe-area-context';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {DataProvider, LayoutProvider, RecyclerListView} from 'recyclerlistview';
import {useTracked} from '../../provider';
@@ -52,7 +51,6 @@ const SimpleList = ({
}),
);
const {width, fontScale} = useWindowDimensions();
const insets = useSafeAreaInsets();
const listData = data;
const dataType = type;
@@ -224,22 +222,6 @@ const SimpleList = ({
}
};
const listStyle = useMemo(() => {
return {
height: '100%',
backgroundColor: colors.bg,
width: '100%',
paddingTop:
Platform.OS === 'ios'
? listData[0] && !selectionMode
? 130
: 130 - 60
: listData[0] && !selectionMode
? 155 - insets.top
: 155 - insets.top - 60,
};
}, [selectionMode, listData, colors, insets]);
return !listData || listData.length === 0 || !dataProvider ? (
_ListEmptyComponent
) : (
@@ -266,7 +248,12 @@ const SimpleList = ({
minHeight: '100%',
},
}}
style={listStyle}
style={{
height: '100%',
backgroundColor: colors.bg,
width: '100%',
paddingTop:10
}}
/>
);
};