Skip to content

Commit 8839062

Browse files
committed
fix(android): set forceInset for translucent status bar screens
1 parent 738ab34 commit 8839062

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

src/auth/screens/auth-profile.screen.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ const mapDispatchToProps = dispatch =>
4343
dispatch
4444
);
4545

46-
const StyledSafeAreaView = styled(SafeAreaView)`
46+
const StyledSafeAreaView = styled(SafeAreaView).attrs({
47+
forceInset: { top: 'always', bottom: 'never' },
48+
})`
4749
background-color: ${colors.primaryDark};
4850
`;
4951

src/organization/screens/organization-profile.screen.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ import {
1818
import { emojifyText, t, openURLInView } from 'utils';
1919
import { colors, fonts } from 'config';
2020

21-
const StyledSafeAreaView = styled(SafeAreaView)`
21+
const StyledSafeAreaView = styled(SafeAreaView).attrs({
22+
forceInset: { top: 'always', bottom: 'never' },
23+
})`
2224
background-color: ${colors.primaryDark};
2325
`;
2426

src/repository/screens/repository.screen.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ const mapDispatchToProps = {
6363
getCommits,
6464
};
6565

66-
const StyledSafeAreaView = styled(SafeAreaView)`
66+
const StyledSafeAreaView = styled(SafeAreaView).attrs({
67+
forceInset: { top: 'always', bottom: 'never' },
68+
})`
6769
background-color: ${colors.primaryDark};
6870
`;
6971

src/user/screens/profile.screen.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ const mapDispatchToProps = dispatch =>
5858
dispatch
5959
);
6060

61-
const StyledSafeAreaView = styled(SafeAreaView)`
61+
const StyledSafeAreaView = styled(SafeAreaView).attrs({
62+
forceInset: { top: 'always', bottom: 'never' },
63+
})`
6264
background-color: ${colors.primaryDark};
6365
`;
6466

0 commit comments

Comments
 (0)