在React原生Android中几乎不可能集中文本输入
我在Android上使用React Native TextInput。问题是你必须多次按下它才能工作。。我还注意到,有时光标会闪烁一次,好像它工作了,键盘会出现,但随后它消失了,什么也没发生在React原生Android中几乎不可能集中文本输入,android,react-native,Android,React Native,我在Android上使用React Native TextInput。问题是你必须多次按下它才能工作。。我还注意到,有时光标会闪烁一次,好像它工作了,键盘会出现,但随后它消失了,什么也没发生 <TextInput style={{ fontFamily: 'greycliff-cf-regular', fontSize: 14, height: 32, p
<TextInput
style={{
fontFamily: 'greycliff-cf-regular',
fontSize: 14,
height: 32,
paddingTop: 0,
marginTop: 6,
flex: 1,
color: '#fff',
}}
underlineColorAndroid="transparent"
autoCorrect={false}
onChangeText={this.onChangeText}
placeholder={'some text'}
value={this.state.currentInput}
/>
我曾经遇到过类似的问题,并通过从样式中删除填充物来解决它
希望这对你也有帮助,如果没有,请提供一张照片或你所面临问题的细节