diff --git a/packages/bottom-tabs/createMaterialBottomTabNavigator.js b/packages/bottom-tabs/createMaterialBottomTabNavigator.js deleted file mode 100644 index 2c1d59f5..00000000 --- a/packages/bottom-tabs/createMaterialBottomTabNavigator.js +++ /dev/null @@ -1,3 +0,0 @@ -/* eslint-disable import/no-commonjs */ - -module.exports = require('./dist/navigators/createMaterialBottomTabNavigator'); diff --git a/packages/bottom-tabs/src/index.js b/packages/bottom-tabs/src/index.js index eeefec84..dd4a92c8 100644 --- a/packages/bottom-tabs/src/index.js +++ b/packages/bottom-tabs/src/index.js @@ -11,17 +11,21 @@ module.exports = { get createMaterialTopTabNavigator() { return require('./navigators/createMaterialTopTabNavigator').default; }, - get createMaterialBottomTabNavigator() { - return require('./navigators/createMaterialBottomTabNavigator').default; - }, /** * Views */ + get BottomTabBar() { + return require('./views/BottomTabBar').default; + }, get MaterialTopTabBar() { return require('./views/MaterialTopTabBar').default; }, - get BottomTabBar() { - return require('./views/BottomTabBar').default; + + /** + * Utils + */ + get createTabNavigator() { + return require('./utils/createTabNavigator').default; }, }; diff --git a/packages/bottom-tabs/src/navigators/createMaterialBottomTabNavigator.js b/packages/bottom-tabs/src/navigators/createMaterialBottomTabNavigator.js deleted file mode 100644 index bff0dc50..00000000 --- a/packages/bottom-tabs/src/navigators/createMaterialBottomTabNavigator.js +++ /dev/null @@ -1,40 +0,0 @@ -/* @flow */ - -import * as React from 'react'; -import { BottomNavigation } from 'react-native-paper'; -import createTabNavigator, { - type InjectedProps, -} from '../utils/createTabNavigator'; - -type Props = InjectedProps & { - activeTintColor?: string, -}; - -class BottomNavigationView extends React.Component { - _getColor = ({ route }) => { - const { descriptors } = this.props; - const descriptor = descriptors[route.key]; - const options = descriptor.options; - - return options.tabBarColor; - }; - - render() { - // eslint-disable-next-line no-unused-vars - const { activeTintColor, navigation, descriptors, ...rest } = this.props; - - return ( - - ); - } -} - -export default createTabNavigator(BottomNavigationView);