Skip to content

Commit

Permalink
fix(UI): fix index to build web
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsland committed Nov 13, 2018
1 parent bafeb5a commit a8457bb
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions client/react-native/common/components/Screens/index.js
@@ -1,4 +1,4 @@
import React, { Fragment, PureComponent } from 'react'
import React from 'react'
import createTabNavigator from 'react-navigation-deprecated-tab-navigator/src/createTabNavigator'
import { Animated, Easing, Platform } from 'react-native'
import { createStackNavigator } from 'react-navigation'
Expand All @@ -10,7 +10,6 @@ import { ByPublicKeyModal } from './Contacts/Add/ByPublicKey'
import { EventListFilterModal } from './Settings/Devtools/EventList'
import IconFeather from 'react-native-vector-icons/dist/Feather'


export const mainTabs = createTabNavigator(
{
contacts: Contacts,
Expand All @@ -24,16 +23,16 @@ export const mainTabs = createTabNavigator(
tabBarPosition: 'bottom',
navigationOptions: ({ navigation }) => ({
tabBarIcon: ({ focused, tintColor }) => {
const { routeName } = navigation.state;
let iconName;
const { routeName } = navigation.state
let iconName
if (routeName === 'contacts') {
iconName = 'users';
iconName = 'users'
} else if (routeName === 'chats') {
iconName = 'message-circle';
iconName = 'message-circle'
} else if (routeName === 'settings') {
iconName = 'settings';
iconName = 'settings'
}
return <IconFeather name={iconName} size={24} color={tintColor} />;
return <IconFeather name={iconName} size={24} color={tintColor} />
},
}),
tabBarOptions: {
Expand All @@ -54,7 +53,7 @@ export const mainTabs = createTabNavigator(
shadowOffset: { height: -5, width: 0 },
shadowOpacity: 0.2,
shadowRadius: 5,
...(Platform.OS === 'android' ? { height:68, paddingTop: 3 } : { height:64, paddingTop: 5, paddingBottom:6, }),
...(Platform.OS === 'android' ? { height: 68, paddingTop: 3 } : { height: 64, paddingTop: 5, paddingBottom: 6 }),
},
],
},
Expand Down

0 comments on commit a8457bb

Please sign in to comment.