diff --git a/apps/mobile/src/components/Container/index.js b/apps/mobile/src/components/Container/index.js index 671a33d3d..ff10c0580 100644 --- a/apps/mobile/src/components/Container/index.js +++ b/apps/mobile/src/components/Container/index.js @@ -12,6 +12,7 @@ import * as Animatable from 'react-native-animatable'; import Icon from 'react-native-vector-icons/Feather'; import {br, opacity, pv, SIZE, WEIGHT} from '../../common/common'; import {useTracked} from '../../provider'; +import {getElevation, w} from '../../utils/utils'; export const AnimatedSafeAreaView = Animatable.createAnimatableComponent( SafeAreaView, ); @@ -71,13 +72,17 @@ export const Container = ({ onPress={bottomButtonOnPress} activeOpacity={opacity} style={{ + ...getElevation(5), width: '95%', alignSelf: 'center', borderRadius: br, backgroundColor: colors.accent, justifyContent: 'center', alignItems: 'center', - marginBottom: 20, + marginBottom: 0, + position: 'absolute', + zIndex: 10, + bottom: 10, }}> - + { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', - paddingHorizontal: 12, + paddingLeft: 12, width: w - 24, alignSelf: 'center', borderRadius: br, @@ -43,9 +43,8 @@ export const Search = props => { style={{ fontFamily: WEIGHT.regular, color: colors.pri, - maxWidth: '90%', - - width: '90%', + maxWidth: '85%', + width: '85%', fontSize: SIZE.md, }} onChangeText={props.onChangeText} @@ -63,7 +62,7 @@ export const Search = props => { placeholderTextColor={colors.icon} /> { props.clear(); props.value.length > 0 ? props.clearSearch() : null; @@ -71,9 +70,7 @@ export const Search = props => { text: '', }); }} - name={ - props.value && props.value.length > 0 ? 'ios-close' : 'ios-search' - } + name={props.value && props.value.length > 0 ? '' : 'search'} color={focus ? colors.accent : colors.icon} size={SIZE.xl} />