We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18a8d23 commit 97ddee6Copy full SHA for 97ddee6
.changeset/all-dryers-study.md
@@ -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
@@ -198,8 +198,8 @@ const TabView = <Route extends BaseRoute>({
198
const customTabBarWrapperRef = useRef<View>(null);
199
const [tabBarHeight, setTabBarHeight] = React.useState<number | undefined>(0);
200
const [measuredDimensions, setMeasuredDimensions] = React.useState<
201
- { width: number; height: number } | undefined
202
- >();
+ { width: number | string; height: number | string } | undefined
+ >({ width: '100%', height: '100%' });
203
204
const trimmedRoutes = React.useMemo(() => {
205
if (
0 commit comments