Skip to content

Commit

Permalink
fix: remove outline from Searchbar on Web (#2961)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunohkbx authored Dec 10, 2021
1 parent 69d5ffe commit 1684719
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/Searchbar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import {
Platform,
StyleSheet,
StyleProp,
TextInput,
Expand Down Expand Up @@ -190,7 +191,15 @@ const Searchbar = React.forwardRef<TextInputHandles, Props>(
accessibilityLabel={searchAccessibilityLabel}
/>
<TextInput
style={[styles.input, { color: textColor, ...font }, inputStyle]}
style={[
styles.input,
{
color: textColor,
...font,
...Platform.select({ web: { outline: 'none' } }),
},
inputStyle,
]}
placeholder={placeholder || ''}
placeholderTextColor={colors.placeholder}
selectionColor={colors.primary}
Expand Down

0 comments on commit 1684719

Please sign in to comment.