fixes and improvements in ui while on a tablet

This commit is contained in:
ammarahm-ed
2020-10-01 17:23:04 +05:00
parent c05ae7fbdc
commit 40ca59d18d
19 changed files with 271 additions and 206 deletions

View File

@@ -42,6 +42,7 @@ const SimpleList = ({
);
const insets = useSafeAreaInsets();
const listData = data;
const dataType = type;
const _onScroll = (event) => {
if (!event) return;
let y = event.nativeEvent.contentOffset.y;
@@ -65,24 +66,6 @@ const SimpleList = ({
);
}, [listData]);
const _ListFooterComponent = listData[0] ? (
<View
style={{
height: 150,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
color: colors.nav,
fontSize: SIZE.sm,
fontFamily: WEIGHT.regular,
}}>
- End -
</Text>
</View>
) : null;
const RenderSectionHeader = ({item}) => (
<Text
style={[
@@ -191,7 +174,7 @@ const SimpleList = ({
case 'note':
return <RenderItem item={data} pinned={data.pinned} index={index} />;
case 'MAIN_HEADER':
return <ListHeaderComponent type={type} data={listData} />;
return <ListHeaderComponent type={dataType} data={listData} />;
case 'header':
return <RenderSectionHeader item={data} />;