mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-25 14:22:14 +03:00
fixed bg color same enhancment
This commit is contained in:
parent
9d59424aab
commit
624357b0f1
@ -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>
|
||||||
|
@ -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',
|
||||||
|
@ -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: {
|
||||||
|
@ -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 />,
|
||||||
|
Loading…
Reference in New Issue
Block a user