diff --git a/src/components/Tabbar/CustomTabBar.js b/src/components/Tabbar/CustomTabBar.js index c83c175..481a334 100644 --- a/src/components/Tabbar/CustomTabBar.js +++ b/src/components/Tabbar/CustomTabBar.js @@ -3,6 +3,7 @@ import {withTheme} from 'react-native-paper'; import TabIcon from "./TabIcon"; import TabHomeIcon from "./TabHomeIcon"; import {Animated} from 'react-native'; +import {SafeAreaView} from 'react-native-safe-area-context'; type Props = { state: Object, @@ -67,13 +68,13 @@ class CustomTabBar extends React.Component { } tabBarIcon = (route, focused) => { - let icon = TAB_ICONS[route.name]; - icon = focused ? icon : icon + ('-outline'); - if (route.name !== "home") - return icon; - else - return null; -}; + let icon = TAB_ICONS[route.name]; + icon = focused ? icon : icon + ('-outline'); + if (route.name !== "home") + return icon; + else + return null; + }; onRouteChange = () => { @@ -134,24 +135,26 @@ class CustomTabBar extends React.Component { render() { this.props.navigation.addListener('state', this.onRouteChange); return ( - - {this.props.state.routes.map(this.renderIcon)} - + + + {this.props.state.routes.map(this.renderIcon)} + + ); } }