This repository was archived by the owner on Nov 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,10 @@ Object containing the initial height and width of the screens. Passing this will
331331
332332Style to apply to the view wrapping each screen. You can pass this to override some default styles such as overflow clipping:
333333
334+ ##### ` pagerStyle `
335+
336+ Style to apply to the pager view wrapping all the scenes.
337+
334338##### ` style `
335339
336340Style to apply to the tab view container.
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export type Props<T extends Route> = PagerProps & {
3030 lazy ?: ( ( props : { route : T } ) => boolean ) | boolean ;
3131 lazyPreloadDistance ?: number ;
3232 sceneContainerStyle ?: StyleProp < ViewStyle > ;
33+ pagerStyle ?: StyleProp < ViewStyle > ;
3334 style ?: StyleProp < ViewStyle > ;
3435} ;
3536
@@ -46,6 +47,7 @@ export default function TabView<T extends Route>({
4647 renderLazyPlaceholder = ( ) => null ,
4748 renderTabBar = ( props ) => < TabBar { ...props } /> ,
4849 sceneContainerStyle,
50+ pagerStyle,
4951 style,
5052 swipeEnabled = true ,
5153 tabBarPosition = 'top' ,
@@ -86,6 +88,7 @@ export default function TabView<T extends Route>({
8688 onSwipeEnd = { onSwipeEnd }
8789 onIndexChange = { jumpToIndex }
8890 animationEnabled = { animationEnabled }
91+ style = { pagerStyle }
8992 >
9093 { ( { position, render, addEnterListener, jumpTo } ) => {
9194 // All of the props here must not change between re-renders
You can’t perform that action at this time.
0 commit comments