()
| 115 | }; |
| 116 | |
| 117 | render() { |
| 118 | const { |
| 119 | value, |
| 120 | style, |
| 121 | onChangeText, |
| 122 | textInputStyle, |
| 123 | height = 50, |
| 124 | minHeight = 50, |
| 125 | maxHeight = 150, |
| 126 | borderRadius = 12, |
| 127 | multiline = false, |
| 128 | textColor = "#9da1ab", |
| 129 | shadowColor = "#757575", |
| 130 | backgroundColor = "#fff", |
| 131 | width = ScreenWidth * 0.9, |
| 132 | placeholder = "Type a message...", |
| 133 | } = this.props; |
| 134 | |
| 135 | return ( |
| 136 | <Androw |
| 137 | style={[ |
| 138 | _container( |
| 139 | height, |
| 140 | width, |
| 141 | minHeight, |
| 142 | maxHeight, |
| 143 | borderRadius, |
| 144 | shadowColor, |
| 145 | backgroundColor, |
| 146 | ), |
| 147 | style, |
| 148 | ]} |
| 149 | > |
| 150 | <TextInput |
| 151 | {...this.props} |
| 152 | value={value} |
| 153 | multiline |
| 154 | placeholder={placeholder} |
| 155 | onChangeText={onChangeText} |
| 156 | style={ |
| 157 | textInputStyle || |
| 158 | _textInputStyle(height, width, minHeight, textColor, multiline) |
| 159 | } |
| 160 | /> |
| 161 | {this.renderBarIconContainer()} |
| 162 | </Androw> |
| 163 | ); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | export default InputBar; |
nothing calls this directly
no test coverage detected