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

Commit 92b55e1

Browse files
authored
Merge pull request #1110 from lightninglabs/dev/status-bar-android
Fix status-bar height for Android
2 parents d4d973a + d397394 commit 92b55e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/component/background.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
KeyboardAvoidingView,
77
ViewPropTypes,
88
Platform,
9+
StatusBar,
910
} from 'react-native';
1011
import PropTypes from 'prop-types';
1112
import BackgroundImage from './background-image';
@@ -79,7 +80,7 @@ SplitBackground.propTypes = {
7980
const wrapperStyles = StyleSheet.create({
8081
safe: {
8182
flex: 1,
82-
paddingTop: Platform.OS === 'android' ? 25 : 0,
83+
paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0,
8384
},
8485
avoid: {
8586
flex: 1,

0 commit comments

Comments
 (0)