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 {
77} from './TabViewNativeComponent' ;
88import {
99 type ColorValue ,
10+ type DimensionValue ,
1011 Image ,
1112 Platform ,
1213 StyleSheet ,
@@ -198,8 +199,8 @@ const TabView = <Route extends BaseRoute>({
198199 const customTabBarWrapperRef = useRef < View > ( null ) ;
199200 const [ tabBarHeight , setTabBarHeight ] = React . useState < number | undefined > ( 0 ) ;
200201 const [ measuredDimensions , setMeasuredDimensions ] = React . useState <
201- { width : number ; height : number } | undefined
202- > ( ) ;
202+ { width : DimensionValue ; height : DimensionValue } | undefined
203+ > ( { width : '100%' , height : '100%' } ) ;
203204
204205 const trimmedRoutes = React . useMemo ( ( ) => {
205206 if (
You can’t perform that action at this time.
0 commit comments