Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 34e2b19

Browse files
committed
Use StatusBar component on Android instead of fixed height
1 parent cce6824 commit 34e2b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/component/notification-wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { StyleSheet, View, Platform } from 'react-native';
2+
import { StyleSheet, View, Platform, StatusBar } from 'react-native';
33
import { observer } from 'mobx-react';
44
import PropTypes from 'prop-types';
55
import DropdownAlert from 'react-native-dropdownalert';
@@ -18,7 +18,7 @@ const styles = StyleSheet.create({
1818
},
1919
dropdown: {
2020
backgroundColor: color.blackDark,
21-
paddingTop: Platform.OS === 'android' ? 25 : 0,
21+
paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight + 5 : 0,
2222
},
2323
text: {
2424
fontFamily: 'OpenSans Regular',

0 commit comments

Comments
 (0)