diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-06 14:01:43 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-05-06 14:01:43 -0400 |
commit | 4d1229af47aa521ab9115b94669a8014f46d29fe (patch) | |
tree | d377809704b15cc4a02dec43b8d66f383f48dcb5 /src/components/search/SearchBar.tsx | |
parent | c9d32e68fbb9d1bc175722bfda49454a6f627eae (diff) |
replaced to use correct normalize function
Diffstat (limited to 'src/components/search/SearchBar.tsx')
-rw-r--r-- | src/components/search/SearchBar.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/components/search/SearchBar.tsx b/src/components/search/SearchBar.tsx index ea36d58b..8a53178b 100644 --- a/src/components/search/SearchBar.tsx +++ b/src/components/search/SearchBar.tsx @@ -1,6 +1,7 @@ import React, {useEffect, useState} from 'react'; import { Keyboard, + LayoutChangeEvent, NativeSyntheticEvent, StyleSheet, Text, @@ -10,14 +11,12 @@ import { TouchableOpacity, View, ViewStyle, - LayoutChangeEvent, } from 'react-native'; -import {normalize} from 'react-native-elements'; import Animated, {useAnimatedStyle} from 'react-native-reanimated'; import Icon from 'react-native-vector-icons/Feather'; import {useSelector} from 'react-redux'; import {RootState} from '../../store/rootReducer'; -import {getSearchSuggestions} from '../../utils'; +import {getSearchSuggestions, normalize} from '../../utils'; const AnimatedIcon = Animated.createAnimatedComponent(Icon); @@ -166,9 +165,9 @@ const styles = StyleSheet.create({ }, input: { flex: 1, - fontSize: 16, + fontSize: normalize(19), color: '#000', - letterSpacing: normalize(0.5), + letterSpacing: 0.5, }, cancelButton: { height: '100%', |