Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <View style={{
- width:dwidth-20,marginHorizontal:20,height:80,marginTop:height/7}}>
- <TextInput
- style={{color:'black',width:width-60, borderColor: 'black'}}
- placeholder="Ask your Question ?"
- underlineColorAndroid='black'
- autoCapitalize="words"
- placeholderTextColor="black"
- keyboardType = "default"
- error = {this.state.errpwd}
- onBlur={() => this.setState({errpwd:""})}
- onChangeText={ (questionText) => this.setState({input: questionText}) }/>
- <View style={styles.section}>
- <PowerTranslator style={styles.p}
- text={'user input: ' + this.state.input} />
- </View>
- </View>
- <TextInput
- style={styles.input}
- value={this.state.inputValue} // Here you can set the value you want
- controlled={true}
- onChangeText={(text) => this.setState({ inputValue: text })}
- onSubmitEditing={this.handleSubmitEditing.bind(this)}
- />
- <TextInput
- ref = {yourTextInputRef}
- style={{color:'black',width:width-60, borderColor: 'black'}}
- placeholder="Ask your Question ?"
- underlineColorAndroid='black'
- autoCapitalize="words"
- placeholderTextColor="black"
- keyboardType = "default"
- error = {this.state.errpwd}
- onBlur={() => this.setState({errpwd:""})}
- onChangeText={ (questionText) => this.setState({input: questionText}) }/>
- this.refs.yourTextInputRef.setNativeProps({text: 'SET_YOUR_VALUE_HERE'});
Add Comment
Please, Sign In to add comment