Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Fix renderPager undefined override #70

Merged
merged 1 commit into from
Nov 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/navigators/createMaterialTopTabNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Props = InjectedProps & {
lazy?: boolean,
optimizationsEnabled?: boolean,
swipeEnabled?: boolean,
renderPager?: (props: *) => React.Node,
tabBarComponent?: React.ComponentType<*>,
tabBarOptions?: TabBarOptions,
tabBarPosition?: 'top' | 'bottom',
Expand Down Expand Up @@ -222,7 +223,7 @@ class MaterialTabView extends React.PureComponent<Props, State> {
...rest
} = this.props;

let renderPager;
let renderPager = rest.renderPager;

const { state } = this.props.navigation;
const route = state.routes[state.index];
Expand Down