1
- import React , { Component , PropTypes , View , Text , TextInput } from 'react-native'
1
+ import React , { Component , PropTypes } from 'react'
2
+ import { View , Text , TextInput , StyleSheet } from 'react-native'
2
3
3
4
export default class InlineTextInput extends Component {
4
5
componentDidMount ( ) {
@@ -54,7 +55,8 @@ export default class InlineTextInput extends Component {
54
55
}
55
56
56
57
renderMessage ( ) {
57
- const { message, messageStyle, style } = this . props
58
+ const { message, messageStyle } = this . props
59
+ const style = StyleSheet . flatten ( this . props . style )
58
60
if ( this . shouldDisplayMessage ( ) ) {
59
61
return (
60
62
< View style = { {
@@ -74,7 +76,8 @@ export default class InlineTextInput extends Component {
74
76
}
75
77
76
78
render ( ) {
77
- const { title, value, style, titleStyle, inputStyle, nextInput, onBlur, multiline } = this . props
79
+ const { title, value, titleStyle, inputStyle, nextInput, onBlur, multiline } = this . props
80
+ const style = StyleSheet . flatten ( this . props . style )
78
81
return (
79
82
< View
80
83
onLayout = { this . handleLayout . bind ( this ) }
@@ -105,6 +108,7 @@ export default class InlineTextInput extends Component {
105
108
</ Text >
106
109
< TextInput
107
110
clearButtonMode = 'while-editing'
111
+ underlineColorAndroid = 'transparent'
108
112
returnKeyType = { multiline ? 'default' : ( nextInput ? 'next' : 'done' ) }
109
113
onSubmitEditing = { this . handleSubmitEditing . bind ( this ) }
110
114
{ ...this . props }
0 commit comments