Skip to content

Commit 97ddee6

Browse files
committed
fix: set initial size fill full screen
1 parent 18a8d23 commit 97ddee6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/all-dryers-study.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-native-bottom-tabs': patch
3+
---
4+
5+
fix: set initial size to full screen

packages/react-native-bottom-tabs/src/TabView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ const TabView = <Route extends BaseRoute>({
198198
const customTabBarWrapperRef = useRef<View>(null);
199199
const [tabBarHeight, setTabBarHeight] = React.useState<number | undefined>(0);
200200
const [measuredDimensions, setMeasuredDimensions] = React.useState<
201-
{ width: number; height: number } | undefined
202-
>();
201+
{ width: number | string; height: number | string } | undefined
202+
>({ width: '100%', height: '100%' });
203203

204204
const trimmedRoutes = React.useMemo(() => {
205205
if (

0 commit comments

Comments
 (0)