hide header button if logged in

This commit is contained in:
ammarahm-ed
2020-09-19 16:04:05 +05:00
parent c8c6a2d5b0
commit efa187e0a4

View File

@@ -221,7 +221,7 @@ const SimpleList = ({
height: 40, height: 40,
borderRadius: 0, borderRadius: 0,
position: 'relative', position: 'relative',
}}> }}>
<View <View
style={{ style={{
width: 25, width: 25,
@@ -286,12 +286,10 @@ const SimpleList = ({
</View> </View>
); );
const _listKeyExtractor = (item, index) =>
item.type === 'header' ? item.title : item.id.toString() + index.toString();
const _layoutProvider = new LayoutProvider( const _layoutProvider = new LayoutProvider(
(index) => { (index) => {
console.log(dataProvider.getDataForIndex(index).type, 'TYPE');
return dataProvider.getDataForIndex(index).type; return dataProvider.getDataForIndex(index).type;
}, },
(type, dim) => { (type, dim) => {
@@ -318,7 +316,7 @@ const SimpleList = ({
break; break;
case 'MAIN_HEADER': case 'MAIN_HEADER':
dim.width = width; dim.width = width;
dim.height = 40; dim.height =user || !data[0] || selectionMode ? 0: 40;
break; break;
default: default:
dim.width = width; dim.width = width;