File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/react-native-bottom-tabs/src Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' react-native-bottom-tabs ' : patch
3
+ ---
4
+
5
+ fix: set initial size to full screen
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import type {
7
7
} from './TabViewNativeComponent' ;
8
8
import {
9
9
type ColorValue ,
10
+ type DimensionValue ,
10
11
Image ,
11
12
Platform ,
12
13
StyleSheet ,
@@ -198,8 +199,8 @@ const TabView = <Route extends BaseRoute>({
198
199
const customTabBarWrapperRef = useRef < View > ( null ) ;
199
200
const [ tabBarHeight , setTabBarHeight ] = React . useState < number | undefined > ( 0 ) ;
200
201
const [ measuredDimensions , setMeasuredDimensions ] = React . useState <
201
- { width : number ; height : number } | undefined
202
- > ( ) ;
202
+ { width : DimensionValue ; height : DimensionValue } | undefined
203
+ > ( { width : '100%' , height : '100%' } ) ;
203
204
204
205
const trimmedRoutes = React . useMemo ( ( ) => {
205
206
if (
You can’t perform that action at this time.
0 commit comments