Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit bf7cb7a

Browse files
committed
Changed textFont to textFontFamily
1 parent a97b510 commit bf7cb7a

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

src/SearchBar.ios.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ export default class SearchBar extends React.PureComponent {
112112
if (this.props.textColor) {
113113
searchInputStyle.color = this.props.textColor;
114114
}
115-
if (this.props.textFont) {
116-
searchInputStyle.fontFamily = this.props.textFont;
115+
if (this.props.textFontFamily) {
116+
searchInputStyle.fontFamily = this.props.textFontFamily;
117117
}
118118

119119
return (
@@ -154,10 +154,14 @@ export default class SearchBar extends React.PureComponent {
154154
onLayout={this._handleLayoutCancelButton}
155155
onPress={this._handlePressCancelButton}>
156156
<Text
157-
style={[{
158-
fontSize: 17,
159-
color: this.props.tintColor || '#007AFF',
160-
}, this.props.textFont ? { fontFamily: this.props.textFont } : null]}>
157+
style={[
158+
{
159+
fontSize: 17,
160+
color: this.props.tintColor || '#007AFF',
161+
},
162+
this.props.textFontFamily ? { fontFamily: this.props.textFontFamily } : null
163+
]}
164+
>
161165
{this.props.cancelButtonText || 'Cancel'}
162166
</Text>
163167
</TouchableOpacity>

src/SearchBar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export default class SearchBar extends React.PureComponent {
2121
if (this.props.textColor) {
2222
searchInputStyle.color = this.props.textColor;
2323
}
24-
if (this.props.textFont) {
25-
searchInputStyle.fontFamily = this.props.textFont;
24+
if (this.props.textFontFamily) {
25+
searchInputStyle.fontFamily = this.props.textFontFamily;
2626
}
2727

2828
return (

src/SearchLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class SearchLayout extends React.Component {
4343
onSubmit={this._handleSubmit}
4444
placeholderTextColor={this.props.searchInputPlaceholderTextColor}
4545
textColor={this.props.searchInputTextColor}
46-
textFont={this.props.searchInputTextFont}
46+
textFontFamily={this.props.searchInputTextFontFamily}
4747
selectionColor={this.props.searchInputSelectionColor}
4848
underlineColorAndroid={
4949
this.props.searchInputUnderlineColorAndroid ||

0 commit comments

Comments
 (0)