Skip to content
This repository was archived by the owner on Nov 27, 2022. It is now read-only.

Commit 939cc0a

Browse files
Merge branch 'main' into feat/add-disable-animation
2 parents 13c2037 + 77dec4f commit 939cc0a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ Object containing the initial height and width of the screens. Passing this will
331331

332332
Style 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

336340
Style to apply to the tab view container.

src/TabView.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)