Skip to content

Commit bcb8702

Browse files
HassanHeydariNasabsatya164
authored andcommitted
fix: use fontFamily of theme for Searchbar (#724)
1 parent 6a065c7 commit bcb8702

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/Searchbar.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ class Searchbar extends React.Component<Props> {
120120
style,
121121
...rest
122122
} = this.props;
123-
const { colors, roundness, dark } = theme;
123+
const { colors, roundness, dark, fonts } = theme;
124124
const textColor = colors.text;
125+
const fontFamily = fonts.regular;
125126
const iconColor = dark
126127
? textColor
127128
: color(textColor)
@@ -149,7 +150,7 @@ class Searchbar extends React.Component<Props> {
149150
icon={icon || 'search'}
150151
/>
151152
<TextInput
152-
style={[styles.input, { color: textColor }]}
153+
style={[styles.input, { color: textColor, fontFamily }]}
153154
placeholder={placeholder || ''}
154155
placeholderTextColor={colors.placeholder}
155156
selectionColor={colors.primary}

0 commit comments

Comments
 (0)