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
331
331
332
332
Style to apply to the view wrapping each screen. You can pass this to override some default styles such as overflow clipping:
333
333
334
+ ##### ` pagerStyle `
335
+
336
+ Style to apply to the pager view wrapping all the scenes.
337
+
334
338
##### ` style `
335
339
336
340
Style 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 & {
30
30
lazy ?: ( ( props : { route : T } ) => boolean ) | boolean ;
31
31
lazyPreloadDistance ?: number ;
32
32
sceneContainerStyle ?: StyleProp < ViewStyle > ;
33
+ pagerStyle ?: StyleProp < ViewStyle > ;
33
34
style ?: StyleProp < ViewStyle > ;
34
35
} ;
35
36
@@ -46,6 +47,7 @@ export default function TabView<T extends Route>({
46
47
renderLazyPlaceholder = ( ) => null ,
47
48
renderTabBar = ( props ) => < TabBar { ...props } /> ,
48
49
sceneContainerStyle,
50
+ pagerStyle,
49
51
style,
50
52
swipeEnabled = true ,
51
53
tabBarPosition = 'top' ,
@@ -84,6 +86,7 @@ export default function TabView<T extends Route>({
84
86
onSwipeStart = { onSwipeStart }
85
87
onSwipeEnd = { onSwipeEnd }
86
88
onIndexChange = { jumpToIndex }
89
+ style = { pagerStyle }
87
90
>
88
91
{ ( { position, render, addEnterListener, jumpTo } ) => {
89
92
// All of the props here must not change between re-renders
You can’t perform that action at this time.
0 commit comments