From cce6824dff13436000dd994102050dda1698bbd3 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Fri, 3 May 2019 14:45:00 +0200 Subject: [PATCH 1/2] Add padding for notification dropdown on Android --- src/component/notification-wrapper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/component/notification-wrapper.js b/src/component/notification-wrapper.js index 4abc70fed..c469c6f8b 100644 --- a/src/component/notification-wrapper.js +++ b/src/component/notification-wrapper.js @@ -1,5 +1,5 @@ import React from 'react'; -import { StyleSheet, View } from 'react-native'; +import { StyleSheet, View, Platform } from 'react-native'; import { observer } from 'mobx-react'; import PropTypes from 'prop-types'; import DropdownAlert from 'react-native-dropdownalert'; @@ -18,6 +18,7 @@ const styles = StyleSheet.create({ }, dropdown: { backgroundColor: color.blackDark, + paddingTop: Platform.OS === 'android' ? 25 : 0, }, text: { fontFamily: 'OpenSans Regular', From 34e2b1929f959915fa261dd61057286a735a6015 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Mon, 6 May 2019 10:20:35 -0700 Subject: [PATCH 2/2] Use StatusBar component on Android instead of fixed height --- src/component/notification-wrapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/notification-wrapper.js b/src/component/notification-wrapper.js index c469c6f8b..0bea1b46f 100644 --- a/src/component/notification-wrapper.js +++ b/src/component/notification-wrapper.js @@ -1,5 +1,5 @@ import React from 'react'; -import { StyleSheet, View, Platform } from 'react-native'; +import { StyleSheet, View, Platform, StatusBar } from 'react-native'; import { observer } from 'mobx-react'; import PropTypes from 'prop-types'; import DropdownAlert from 'react-native-dropdownalert'; @@ -18,7 +18,7 @@ const styles = StyleSheet.create({ }, dropdown: { backgroundColor: color.blackDark, - paddingTop: Platform.OS === 'android' ? 25 : 0, + paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight + 5 : 0, }, text: { fontFamily: 'OpenSans Regular',