File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,21 @@ export default class InlineTextInput extends Component {
54
54
}
55
55
56
56
renderMessage ( ) {
57
- const { message, messageStyle } = this . props
57
+ const { message, messageStyle, style } = this . props
58
58
if ( this . shouldDisplayMessage ( ) ) {
59
59
return (
60
- < Text style = { [ {
61
- color : 'red' ,
62
- marginLeft : 10 ,
63
- marginBottom : 10 ,
64
- fontSize : 12 ,
65
- } , messageStyle ] } >
66
- { message }
67
- </ Text >
60
+ < View style = { {
61
+ backgroundColor : ( style && style . backgroundColor ? style . backgroundColor : 'white' )
62
+ } } >
63
+ < Text style = { [ {
64
+ color : 'red' ,
65
+ marginLeft : 10 ,
66
+ marginBottom : 10 ,
67
+ fontSize : 12 ,
68
+ } , messageStyle ] } >
69
+ { message }
70
+ </ Text >
71
+ </ View >
68
72
)
69
73
}
70
74
}
@@ -85,7 +89,8 @@ export default class InlineTextInput extends Component {
85
89
flexDirection : 'row' ,
86
90
alignItems : 'center' ,
87
91
paddingTop : 6 ,
88
- paddingBottom : ( this . shouldDisplayMessage ( ) ? 0 : 6 )
92
+ paddingBottom : ( this . shouldDisplayMessage ( ) ? 0 : 6 ) ,
93
+ backgroundColor : ( style && style . backgroundColor ? style . backgroundColor : 'white' ) ,
89
94
} } >
90
95
{ this . renderIcon ( ) }
91
96
< Text
You can’t perform that action at this time.
0 commit comments