mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 17:23:42 +08:00
Fix renderPager undefined override (#70)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user