Fix status-bar height for Android

parent 2032a052
......@@ -6,6 +6,7 @@ import {
KeyboardAvoidingView,
ViewPropTypes,
Platform,
StatusBar,
} from 'react-native';
import PropTypes from 'prop-types';
import BackgroundImage from './background-image';
......@@ -79,7 +80,7 @@ SplitBackground.propTypes = {
const wrapperStyles = StyleSheet.create({
safe: {
flex: 1,
paddingTop: Platform.OS === 'android' ? 25 : 0,
paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0,
},
avoid: {
flex: 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment