EventList: Fix section header padding on android

This commit is contained in:
nikolark committed 2017-11-18 18:07:43 +01:00
1 parent 39a163010b
commit f65f29a0f3
1 file changed
+5 -2
+5 -2
View File
@@ -1,4 +1,4 @@
import {StyleSheet, View, SectionList} from "react-native";
import {StyleSheet, View, SectionList, Platform} from "react-native";
import {Card, ListItem, CardItem, Body, Text as Text, Left, Right, Icon, Button, Content, Spinner} from 'native-base';
import React, { Component } from 'react';
import moment from "moment";
@@ -94,7 +94,10 @@ const styles = StyleSheet.create({
sectionHeader: {
backgroundColor: 'white',
marginLeft: 0,
marginBottom: -8,
...Platform.select({
'ios': {marginBottom: -8},
'android': {marginBottom: -4}
}),
paddingBottom: 0,
borderBottomWidth: 0,
},