diff --git a/src/components/Tabbar/TabHomeIcon.js b/src/components/Tabbar/TabHomeIcon.js index 55c6d0e..3dc4e58 100644 --- a/src/components/Tabbar/TabHomeIcon.js +++ b/src/components/Tabbar/TabHomeIcon.js @@ -31,7 +31,6 @@ type PropsType = { focused: boolean, onPress: () => void, onLongPress: () => void, - theme: CustomThemeType, tabBarHeight: number, }; @@ -84,20 +83,9 @@ class TabHomeIcon extends React.Component { color: string, }): React.Node => { const {focused} = this.props; - if (focused) - return ( - - ); return ( { flex: 1, justifyContent: 'center', }}> - { easing="ease-out" animation={props.focused ? 'fabFocusIn' : 'fabFocusOut'} icon={this.getIconRender} + onPress={props.onPress} + onLongPress={props.onLongPress} style={{ marginTop: 15, marginLeft: 'auto', marginRight: 'auto', }} /> - + ); } } -export default withTheme(TabHomeIcon); +export default TabHomeIcon;