From f65f29a0f31f8dbac6b1dad22d11b19c0c962c3c Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Sat, 18 Nov 2017 18:07:43 +0100 Subject: [PATCH] EventList: Fix section header padding on android --- src/modules/events/EventList.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/events/EventList.js b/src/modules/events/EventList.js index 8c448cc..93423fd 100644 --- a/src/modules/events/EventList.js +++ b/src/modules/events/EventList.js @@ -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, },