我有一个<TextInput/>
在这里 react native 组件。当我开始输入时,我会看到键盘上方的预测框。我不想让它出现,我怎样才能摆脱它?
https://facebook.github.io/react-native/docs/textinput.html
<TextInput
placeholder="email"
autoCapitalize="none"
keyboardType="email-address"
placeholderTextColor="white"
style={styles.input}
onChangeText={email => this.setState({ email })}
value={this.state.email}
/>
最佳答案
尝试使用<TextInput autoCorrect={false} />
用于禁用建议。
关于reactjs - React-native: <TextInput/> 删除键盘预测,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50595804/