This repository was archived by the owner on Dec 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ export default class SearchBar extends React.PureComponent {
112
112
if ( this . props . textColor ) {
113
113
searchInputStyle . color = this . props . textColor ;
114
114
}
115
- if ( this . props . textFont ) {
116
- searchInputStyle . fontFamily = this . props . textFont ;
115
+ if ( this . props . textFontFamily ) {
116
+ searchInputStyle . fontFamily = this . props . textFontFamily ;
117
117
}
118
118
119
119
return (
@@ -154,10 +154,14 @@ export default class SearchBar extends React.PureComponent {
154
154
onLayout = { this . _handleLayoutCancelButton }
155
155
onPress = { this . _handlePressCancelButton } >
156
156
< 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
+ >
161
165
{ this . props . cancelButtonText || 'Cancel' }
162
166
</ Text >
163
167
</ TouchableOpacity >
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ export default class SearchBar extends React.PureComponent {
21
21
if ( this . props . textColor ) {
22
22
searchInputStyle . color = this . props . textColor ;
23
23
}
24
- if ( this . props . textFont ) {
25
- searchInputStyle . fontFamily = this . props . textFont ;
24
+ if ( this . props . textFontFamily ) {
25
+ searchInputStyle . fontFamily = this . props . textFontFamily ;
26
26
}
27
27
28
28
return (
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export default class SearchLayout extends React.Component {
43
43
onSubmit = { this . _handleSubmit }
44
44
placeholderTextColor = { this . props . searchInputPlaceholderTextColor }
45
45
textColor = { this . props . searchInputTextColor }
46
- textFont = { this . props . searchInputTextFont }
46
+ textFontFamily = { this . props . searchInputTextFontFamily }
47
47
selectionColor = { this . props . searchInputSelectionColor }
48
48
underlineColorAndroid = {
49
49
this . props . searchInputUnderlineColorAndroid ||
You can’t perform that action at this time.
0 commit comments