diff --git a/BottomNavigation/BottomNavigation.js b/BottomNavigation/BottomNavigation.js index 00f0194..d271023 100644 --- a/BottomNavigation/BottomNavigation.js +++ b/BottomNavigation/BottomNavigation.js @@ -30,7 +30,6 @@ const styles = StyleSheet.create({ paddingBottom: padding, width: '100%', flexDirection: 'row', - backgroundColor: 'red', }, }); diff --git a/BottomNavigation/Nav.js b/BottomNavigation/Nav.js index f2289bd..d267873 100644 --- a/BottomNavigation/Nav.js +++ b/BottomNavigation/Nav.js @@ -1,14 +1,14 @@ // @flow import React from 'react'; import { - TouchableOpacity, View, Text, Image, StyleSheet, + TouchableOpacity, Text, Image, StyleSheet, } from 'react-native'; import NavigatonContext from './NavigatonContext'; type Props = { title: string, - screen: React.Node, + screen: Class, icon: number, } @@ -34,10 +34,10 @@ const Nav = ({ title, screen, icon }: Props) => ( const activeColor = activeScreen === screen ? tintColor : undefined; return ( setActiveScreen(screen)}> - - - {title} - + + + {title} + ); }