Skip to content

Commit

Permalink
Merge pull request #55082 from software-mansion-labs/@wolewicki/fix-i…
Browse files Browse the repository at this point in the history
…nsets-on-android

[CP Staging] fix: remove using StatusBar height

(cherry picked from commit 15f0b50)

(CP triggered by thienlnam)
  • Loading branch information
mountiny authored and OSBotify committed Jan 10, 2025
1 parent 9c9ed54 commit 3d7a37e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/styles/utils/getSafeAreaInsets/index.android.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {EdgeInsets} from 'react-native-safe-area-context';
import StatusBar from '@libs/StatusBar';
import defaultInsets from './defaultInsets';

/**
Expand All @@ -9,10 +8,7 @@ import defaultInsets from './defaultInsets';
function getSafeAreaInsets(safeAreaInsets: EdgeInsets | null): EdgeInsets {
const insets = safeAreaInsets ?? defaultInsets;

return {
...insets,
top: StatusBar.currentHeight ?? insets.top,
};
return insets;
}

export default getSafeAreaInsets;

0 comments on commit 3d7a37e

Please sign in to comment.