Skip to content

Commit 1684719

Browse files
authored
fix: remove outline from Searchbar on Web (#2961)
1 parent 69d5ffe commit 1684719

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/components/Searchbar.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22
import {
3+
Platform,
34
StyleSheet,
45
StyleProp,
56
TextInput,
@@ -190,7 +191,15 @@ const Searchbar = React.forwardRef<TextInputHandles, Props>(
190191
accessibilityLabel={searchAccessibilityLabel}
191192
/>
192193
<TextInput
193-
style={[styles.input, { color: textColor, ...font }, inputStyle]}
194+
style={[
195+
styles.input,
196+
{
197+
color: textColor,
198+
...font,
199+
...Platform.select({ web: { outline: 'none' } }),
200+
},
201+
inputStyle,
202+
]}
194203
placeholder={placeholder || ''}
195204
placeholderTextColor={colors.placeholder}
196205
selectionColor={colors.primary}

0 commit comments

Comments
 (0)