This repository was archived by the owner on Dec 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ declare module 'react-navigation-addon-search-layout' {
20
20
/** Color of text that the user enters into the search box **/
21
21
textColor ?: string ;
22
22
23
+ /** FontFamily of text that the user enters into the search box and for the text shown as cancel button **/
24
+ textFontFamily ?: string ;
25
+
23
26
/** Underline color of the text input on Android **/
24
27
searchInputUnderlineColorAndroid ?: string ;
25
28
Original file line number Diff line number Diff line change @@ -154,14 +154,11 @@ export default class SearchBar extends React.PureComponent {
154
154
onLayout = { this . _handleLayoutCancelButton }
155
155
onPress = { this . _handlePressCancelButton } >
156
156
< Text
157
- style = { [
158
- {
159
- fontSize : 17 ,
160
- color : this . props . tintColor || '#007AFF' ,
161
- } ,
162
- this . props . textFontFamily ? { fontFamily : this . props . textFontFamily } : null
163
- ] }
164
- >
157
+ style = { {
158
+ fontSize : 17 ,
159
+ color : this . props . tintColor || '#007AFF' ,
160
+ ...( this . props . textFontFamily && { fontFamily : this . props . textFontFamily } ) ,
161
+ } } >
165
162
{ this . props . cancelButtonText || 'Cancel' }
166
163
</ Text >
167
164
</ TouchableOpacity >
You can’t perform that action at this time.
0 commit comments