mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix bottom button ui on android
This commit is contained in:
@@ -4,10 +4,7 @@ import { useSafeArea } from 'react-native-safe-area-context';
|
|||||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
||||||
import {pv, SIZE, WEIGHT} from '../../common/common';
|
import {pv, SIZE, WEIGHT} from '../../common/common';
|
||||||
import {useTracked} from '../../provider';
|
import {useTracked} from '../../provider';
|
||||||
import {
|
import {DDS, getElevation} from '../../utils/utils';
|
||||||
DDS,
|
|
||||||
getElevation
|
|
||||||
} from '../../utils/utils';
|
|
||||||
import {PressableButton} from '../PressableButton';
|
import {PressableButton} from '../PressableButton';
|
||||||
|
|
||||||
export const ContainerBottomButton = ({root}) => {
|
export const ContainerBottomButton = ({root}) => {
|
||||||
@@ -63,12 +60,22 @@ export const ContainerBottomButton = ({root}) => {
|
|||||||
],
|
],
|
||||||
}}>
|
}}>
|
||||||
<PressableButton
|
<PressableButton
|
||||||
color={containerBottomButton.color? containerBottomButton.color : colors.accent}
|
color={
|
||||||
selectedColor={containerBottomButton.color? containerBottomButton.color : colors.accent}
|
containerBottomButton.color
|
||||||
|
? containerBottomButton.color
|
||||||
|
: colors.accent
|
||||||
|
}
|
||||||
|
selectedColor={
|
||||||
|
containerBottomButton.color
|
||||||
|
? containerBottomButton.color
|
||||||
|
: colors.accent
|
||||||
|
}
|
||||||
|
customStyle={{
|
||||||
|
...getElevation(5),
|
||||||
|
}}
|
||||||
onPress={containerBottomButton.bottomButtonOnPress}>
|
onPress={containerBottomButton.bottomButtonOnPress}>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
...getElevation(5),
|
|
||||||
justifyContent: 'flex-start',
|
justifyContent: 'flex-start',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
|
|||||||
Reference in New Issue
Block a user