Skip to content

Commit

Permalink
Fix issue undefined is not an object evaluating r.default, see aksono…
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaynaud committed Jul 16, 2018
1 parent c8b4317 commit ddcce38
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/navigators/DrawerNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import SafeAreaView from 'react-native-safe-area-view';

import createNavigator from './createNavigator';
import createNavigationContainer from '../createNavigationContainer';
import TabRouter from '../routers/TabRouter';
import tabRouter from '../routers/TabRouter';
import DrawerScreen from '../views/Drawer/DrawerScreen';
import DrawerView from '../views/Drawer/DrawerView';
import DrawerItems from '../views/Drawer/DrawerNavigatorItems';
Expand Down Expand Up @@ -63,8 +63,8 @@ const DrawerNavigator = (routeConfigs, config = {}) => {
...tabsConfig
} = mergedConfig;

const contentRouter = TabRouter(routeConfigs, tabsConfig);
const drawerRouter = TabRouter(
const contentRouter = tabRouter(routeConfigs, tabsConfig);
const drawerRouter = tabRouter(
{
[drawerCloseRoute]: {
screen: createNavigator(contentRouter, routeConfigs, config)(props => (
Expand Down
4 changes: 2 additions & 2 deletions src/navigators/StackNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import createNavigationContainer from '../createNavigationContainer';
import createNavigator from './createNavigator';
import CardStackTransitioner from '../views/CardStack/CardStackTransitioner';
import StackRouter from '../routers/StackRouter';
import stackRouter from '../routers/StackRouter';
import NavigationActions from '../NavigationActions';

// A stack navigators props are the intersection between
Expand Down Expand Up @@ -33,7 +33,7 @@ export default (routeConfigMap, stackConfig = {}) => {
navigationOptions,
};

const router = StackRouter(routeConfigMap, stackRouterConfig);
const router = stackRouter(routeConfigMap, stackRouterConfig);

// Create a navigator with CardStackTransitioner as the view
const navigator = createNavigator(router, routeConfigMap, stackConfig)(
Expand Down
4 changes: 2 additions & 2 deletions src/navigators/SwitchNavigator.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import SwitchRouter from '../routers/SwitchRouter';
import switchRouter from '../routers/SwitchRouter';
import SwitchView from '../views/SwitchView/SwitchView';
import createNavigationContainer from '../createNavigationContainer';
import createNavigator from '../navigators/createNavigator';

export default (routeConfigMap, switchConfig = {}) => {
const router = SwitchRouter(routeConfigMap, switchConfig);
const router = switchRouter(routeConfigMap, switchConfig);

const navigator = createNavigator(router, routeConfigMap, switchConfig)(
props => <SwitchView {...props} />
Expand Down
4 changes: 2 additions & 2 deletions src/navigators/TabNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Platform } from 'react-native';

import createNavigator from './createNavigator';
import createNavigationContainer from '../createNavigationContainer';
import TabRouter from '../routers/TabRouter';
import tabRouter from '../routers/TabRouter';
import TabView from '../views/TabView/TabView';
import TabBarTop from '../views/TabView/TabBarTop';
import TabBarBottom from '../views/TabView/TabBarBottom';
Expand All @@ -28,7 +28,7 @@ const TabNavigator = (routeConfigs, config = {}) => {
...tabsConfig
} = mergedConfig;

const router = TabRouter(routeConfigs, tabsConfig);
const router = tabRouter(routeConfigs, tabsConfig);

const navigator = createNavigator(router, routeConfigs, config)(props => (
<TabView
Expand Down

0 comments on commit ddcce38

Please sign in to comment.