Skip to content

Commit 043f5d6

Browse files
authored
Fixed search functionality, search logo appearance (#2208)
* Fixed search functionality, search logo appearance * Added spacing to the search leadinAccessory Icon
1 parent fa6b85a commit 043f5d6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

demo/src/screens/MainScreen.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ class MainScreen extends Component {
172172

173173
clearSearch = () => {
174174
this.updateSearch('');
175+
this.input?.clear();
175176
};
176177

177178
filterExplorerScreens = () => {
@@ -241,11 +242,9 @@ class MainScreen extends Component {
241242
floatingPlaceholder={false}
242243
text70
243244
leadingAccessory={
244-
!filterText ? (
245-
<View>
246-
<Icon tintColor={Colors.$iconDefault} source={Assets.icons.demo.search}/>
247-
</View>
248-
) : undefined
245+
<View>
246+
<Icon marginR-s2 tintColor={Colors.$iconDefault} source={Assets.icons.demo.search}/>
247+
</View>
249248
}
250249
trailingAccessory={
251250
filterText ? (

0 commit comments

Comments
 (0)