File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
packages/react-native-ui/src Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -39,18 +39,17 @@ const options = {
39
39
] ,
40
40
} as IFuseOptions < SearchItem > ;
41
41
42
- const SearchIconWrapper = styled . View ( ( { theme } ) => ( {
42
+ const SearchIconWrapper = styled . View ( {
43
43
position : 'absolute' ,
44
44
top : 0 ,
45
45
left : 8 ,
46
46
zIndex : 1 ,
47
47
pointerEvents : 'none' ,
48
- color : theme . textMutedColor ,
49
48
display : 'flex' ,
50
49
flexDirection : 'row' ,
51
50
alignItems : 'center' ,
52
51
height : '100%' ,
53
- } ) ) ;
52
+ } ) ;
54
53
55
54
const SearchField = styled . View ( {
56
55
display : 'flex' ,
Original file line number Diff line number Diff line change 1
- import * as React from 'react' ;
2
1
import { Path , Svg , SvgProps } from 'react-native-svg' ;
2
+ import { useTheme } from '@storybook/react-native-theming' ;
3
3
4
- export const SearchIcon = ( {
5
- color = 'currentColor' ,
6
- width = 14 ,
7
- height = 14 ,
8
- ...props
9
- } : SvgProps ) => {
4
+ export const SearchIcon = ( { width = 14 , height = 14 , ...props } : SvgProps ) => {
5
+ const theme = useTheme ( ) ;
10
6
return (
11
- < Svg width = { width } height = { height } viewBox = "0 0 14 14" fill = "none" { ...props } >
7
+ < Svg width = { width } height = { height } viewBox = "0 0 14 14" fill = { theme . color . dark } { ...props } >
12
8
< Path
13
9
fillRule = "evenodd"
14
10
clipRule = "evenodd"
15
11
d = "M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z"
16
- fill = { color }
17
12
/>
18
13
</ Svg >
19
14
) ;
You can’t perform that action at this time.
0 commit comments