File tree Expand file tree Collapse file tree 1 file changed +24
-21
lines changed Expand file tree Collapse file tree 1 file changed +24
-21
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ export default class LabeledTextInput extends Component {
88
88
paddingHorizontal : 10 ,
89
89
} , style ] }
90
90
>
91
- { this . renderIcon ( ) }
92
91
< Text
93
92
style = { [ {
94
93
fontSize : 12 ,
@@ -98,26 +97,30 @@ export default class LabeledTextInput extends Component {
98
97
>
99
98
{ label }
100
99
</ Text >
101
- < TextInput
102
- clearButtonMode = 'while-editing'
103
- underlineColorAndroid = 'transparent'
104
- returnKeyType = { multiline ? 'default' : ( nextInput ? 'next' : 'done' ) }
105
- onSubmitEditing = { this . handleSubmitEditing . bind ( this ) }
106
- { ...this . props }
107
- onFocus = { this . handleFocus . bind ( this ) }
108
- onBlur = { onBlur }
109
- ref = 'input'
110
- value = { value }
111
- style = { [ {
112
- height : 24 ,
113
- paddingHorizontal : 10 ,
114
- fontSize : 12 ,
115
- lineHeight : 24 ,
116
- borderWidth : StyleSheet . hairlineWidth ,
117
- borderColor : 'lightgray' ,
118
- backgroundColor : 'white' ,
119
- } , inputStyle ] }
120
- />
100
+ < View style = { [ { flex : 1 , flexDirection : 'row' , alignItems : 'center' } ] } >
101
+ { this . renderIcon ( ) }
102
+ < TextInput
103
+ clearButtonMode = 'while-editing'
104
+ underlineColorAndroid = 'transparent'
105
+ returnKeyType = { multiline ? 'default' : ( nextInput ? 'next' : 'done' ) }
106
+ onSubmitEditing = { this . handleSubmitEditing . bind ( this ) }
107
+ { ...this . props }
108
+ onFocus = { this . handleFocus . bind ( this ) }
109
+ onBlur = { onBlur }
110
+ ref = 'input'
111
+ value = { value }
112
+ style = { [ {
113
+ flex : 1 ,
114
+ height : 24 ,
115
+ paddingHorizontal : 10 ,
116
+ fontSize : 12 ,
117
+ lineHeight : 24 ,
118
+ borderWidth : StyleSheet . hairlineWidth ,
119
+ borderColor : 'lightgray' ,
120
+ backgroundColor : 'white' ,
121
+ } , inputStyle ] }
122
+ />
123
+ </ View >
121
124
{ this . renderMessage ( ) }
122
125
</ View >
123
126
)
You can’t perform that action at this time.
0 commit comments