MCPcopy Create free account
hub / github.com/jpush/aurora-imui / render

Method render

ReactNative_JS/InputView.js:157–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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>

Callers

nothing calls this directly

Calls 1

renderLeftMethod · 0.80

Tested by

no test coverage detected