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

View File

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

View File

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

View File

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