Skip to content

Commit

Permalink
refactor: 노치 짤리는 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ptq124 committed Feb 15, 2025
1 parent f840771 commit 8011010
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/shared/bridge/safe-area/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { type PropsWithChildren } from 'react';
import {
SafeAreaProvider,
SafeAreaView,
useSafeAreaInsets,
} from 'react-native-safe-area-context';

Expand All @@ -9,5 +10,9 @@ export const getInsets = () => {
};

export const SafeAreaContext = ({ children }: PropsWithChildren) => {
return <SafeAreaProvider>{children}</SafeAreaProvider>;
return (
<SafeAreaProvider>
<SafeAreaView style={{ flex: 1 }}>{children}</SafeAreaView>
</SafeAreaProvider>
);
};

0 comments on commit 8011010

Please sign in to comment.