Fix renderPager undefined override (#70)

This commit is contained in:
mmtootmm
2018-12-01 05:49:36 +09:00
committed by satyajit.happy
parent a138bb0637
commit 8a4ef3f18d

View File

@@ -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',
@@ -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];