From 6a202b11afe6f36fc16df6d03e6a3f82b8a6c729 Mon Sep 17 00:00:00 2001 From: abhip2565 Date: Thu, 13 Nov 2025 18:37:47 +0530 Subject: [PATCH] [INJIMOB-3633] fix search bar clear icon not apperaing (#2133) Signed-off-by: Abhishek Paul --- components/ui/SearchBar.tsx | 22 ++++++++++++++++++---- components/ui/themes/DefaultTheme.ts | 16 +++++++++++----- components/ui/themes/PurpleTheme.ts | 16 +++++++++++----- screens/Issuers/IssuersScreen.tsx | 13 ------------- 4 files changed, 40 insertions(+), 27 deletions(-) diff --git a/components/ui/SearchBar.tsx b/components/ui/SearchBar.tsx index 556c5b41..37c16911 100644 --- a/components/ui/SearchBar.tsx +++ b/components/ui/SearchBar.tsx @@ -1,8 +1,8 @@ import React from 'react'; -import {TextInput} from 'react-native'; -import {Icon} from 'react-native-elements'; -import {Row} from './Layout'; -import {Theme} from './styleUtils'; +import { TextInput, TouchableOpacity } from 'react-native'; +import { Icon } from 'react-native-elements'; +import { Row } from './Layout'; +import { Theme } from './styleUtils'; export const SearchBar = ({ searchIconTestID, @@ -27,6 +27,20 @@ export const SearchBar = ({ onLayout={onLayout} editable={editable ?? true} /> + + {search?.length > 0 && ( + onChangeText('')} + style={Theme.SearchBarStyles.clearIcon}> + + + )} filterIssuers('')} /> - {clearSearchIcon && ( - - - - )}