ordering-ui-react-native 0.16.71 → 0.16.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.16.71",
3
+ "version": "0.16.72",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -327,16 +327,17 @@ export const BusinessListingSearchUI = (props: BusinessSearchParams) => {
327
327
  </OText>
328
328
  </WrapHeader>
329
329
  <SearchWrapper>
330
- <SearchBar
331
- autoFocus
332
- lazyLoad
333
- inputStyle={{ ...styles.searchInput, ...Platform.OS === 'ios' ? {} : { paddingBottom: 4 } }}
334
- placeholder={`${t('SEARCH_BUSINESSES', 'Search Businesses')} / ${t('TYPE_AT_LEAST_3_CHARACTERS', 'type at least 3 characters')}`}
335
- onSearch={(val: string) => handleChangeTermValue(val)}
336
- value={termValue}
337
- iconCustomRight={<AntDesignIcon name='filter' size={16} style={{ bottom: 2 }} onPress={() => handleOpenfilters()} />}
338
- />
339
-
330
+ {isFocused && (
331
+ <SearchBar
332
+ autoFocus
333
+ lazyLoad
334
+ inputStyle={{ ...styles.searchInput, ...Platform.OS === 'ios' ? {} : { paddingBottom: 4 } }}
335
+ placeholder={`${t('SEARCH_BUSINESSES', 'Search Businesses')} / ${t('TYPE_AT_LEAST_3_CHARACTERS', 'type at least 3 characters')}`}
336
+ onSearch={(val: string) => handleChangeTermValue(val)}
337
+ value={termValue}
338
+ iconCustomRight={<AntDesignIcon name='filter' size={16} style={{ bottom: 2 }} onPress={() => handleOpenfilters()} />}
339
+ />
340
+ )}
340
341
  </SearchWrapper>
341
342
  {
342
343
  noResults && (