This repository was archived by the owner on Dec 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 ||
You can’t perform that action at this time.
0 commit comments