()
| 155 | } |
| 156 | |
| 157 | render() { |
| 158 | return <View |
| 159 | style={[ |
| 160 | styles.container, |
| 161 | this.state.inputViewHeight? {height: this.state.inputViewHeight} : {}, |
| 162 | this.props.inputViewStyle, |
| 163 | { position: this.state.position }, |
| 164 | ]} |
| 165 | |
| 166 | onLayout={({nativeEvent: {layout: {height}}}) => { |
| 167 | console.log('input view on layout') |
| 168 | if ('absolute' === this.state.position) { |
| 169 | this.state.position = 'relative' |
| 170 | this.setState({ |
| 171 | position: 'relative' |
| 172 | }) |
| 173 | } |
| 174 | |
| 175 | if (this.inputViewHeight === undefined) { |
| 176 | this.inputViewHeight = height |
| 177 | } |
| 178 | }} |
| 179 | > |
| 180 | <View |
| 181 | style={[styles.inputView]} |
| 182 | > |
| 183 | {this.renderLeft()} |
| 184 | {this.renderTextInput()} |
| 185 | {this.renderRight()} |
| 186 | </View> |
nothing calls this directly
no test coverage detected