Skip to content

Commit 2860a47

Browse files
committed
refactor: remove unused safe area insets from custom BottomBar component
1 parent 7fe5b93 commit 2860a47

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/common/custom-bottom-bar/BottomBar.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { type BottomTabBarProps } from '@react-navigation/bottom-tabs';
2-
import { useSafeAreaInsets } from 'react-native-safe-area-context';
32

43
import { type TabList } from '~app/(tabs)/_layout';
54
import { styled } from '~styles';
@@ -22,10 +21,8 @@ export function BottomBar({
2221
navigation,
2322
tabs,
2423
}: CustomTabBarProps) {
25-
const insets = useSafeAreaInsets();
26-
2724
return (
28-
<TabBarContainer style={{ paddingBottom: insets.bottom }}>
25+
<TabBarContainer>
2926
{state.routes.map((route, index) => {
3027
if (EXCLUDED_ROUTES.includes(route.name)) return null;
3128

0 commit comments

Comments
 (0)