fixed bg color same enhancment

This commit is contained in:
ue 2019-10-11 00:20:48 +03:00
parent 9d59424aab
commit 624357b0f1
4 changed files with 6 additions and 10 deletions

View File

@ -18,12 +18,7 @@ import styles from './bottomTabBarStyles';
const _jumpTo = (route, index, routes, jumpTo) => {
const _routeName = routes[index].routeName;
if (
!!route &&
!!get(route, 'params') &&
!!get(route, 'params.scrollToTop') &&
_routeName === ROUTES.TABBAR.HOME
) {
if (!!get(route, 'params.scrollToTop') && _routeName === ROUTES.TABBAR.HOME) {
route.params.scrollToTop();
}
@ -68,7 +63,7 @@ const BottomTabBarView = ({
tintColor: activeTintColor,
})}
key={route}
disabled={route.routeName === ROUTES.TABBAR.POSTBUTTON}
disabled={route.routeName === ROUTES.TABBAR.POST_BUTTON}
/>
))}
</TabBar>

View File

@ -119,11 +119,12 @@ export default EStyleSheet.create({
},
scrollContainer: {
flex: 1,
backgroundColor: '$pureWhite',
},
popoverDetails: {
flexDirection: 'row',
height: 130,
width: '$deviceWidth /2',
width: '$deviceWidth / 2',
borderRadius: 20,
paddingHorizontal: 26,
backgroundColor: '$primaryBackgroundColor',

View File

@ -32,7 +32,7 @@ export default {
HOME: `Home${TABBAR_SUFFIX}`,
NOTIFICATION: `Notification${TABBAR_SUFFIX}`,
POINTS: `Points${TABBAR_SUFFIX}`,
POSTBUTTON: `PostButton${TABBAR_SUFFIX}`,
POST_BUTTON: `PostButton${TABBAR_SUFFIX}`,
PROFILE: `Profile${TABBAR_SUFFIX}`,
},
MODAL: {

View File

@ -34,7 +34,7 @@ const BaseNavigator = createBottomTabNavigator(
),
}),
},
[ROUTES.TABBAR.POSTBUTTON]: {
[ROUTES.TABBAR.POST_BUTTON]: {
screen: () => null,
navigationOptions: {
tabBarIcon: ({ tintColor }) => <PostButton />,