From bb7794316b144ad1c6ea6d2e770be058af88ae5c Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Wed, 3 Mar 2021 11:32:50 -0800 Subject: re aligned helper text --- src/components/search/SearchBar.tsx | 65 +++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 24 deletions(-) (limited to 'src') diff --git a/src/components/search/SearchBar.tsx b/src/components/search/SearchBar.tsx index dce1b40c..4dde22f0 100644 --- a/src/components/search/SearchBar.tsx +++ b/src/components/search/SearchBar.tsx @@ -13,6 +13,7 @@ import { import Animated from 'react-native-reanimated'; import Icon from 'react-native-vector-icons/Feather'; import {normalize} from 'react-native-elements'; +import {SCREEN_WIDTH} from '../../utils'; const AnimatedIcon = Animated.createAnimatedComponent(Icon); @@ -36,31 +37,36 @@ const SearchBar: React.FC = ({ }; return ( - - - - - - - - Cancel - + <> + + + + + + + + Cancel + + - + + Try searching for "trending on tagg" + + ); }; @@ -100,6 +106,17 @@ const styles = StyleSheet.create({ color: '#818181', fontWeight: '600', }, + helperText: { + fontWeight: '400', + fontSize: 14, + lineHeight: normalize(16.71), + color: '#828282', + marginBottom: '2%', + marginHorizontal: '2.5%', + marginTop: '1%', + textAlign: 'center', + width: SCREEN_WIDTH * 0.74, + }, }); export default SearchBar; -- cgit v1.2.3-70-g09d2