【发布时间】:2020-04-14 12:07:13
【问题描述】:
我需要一些帮助。
我无法让文本输入键盘显示自动更正建议。该功能在进入世博小吃时有效,但不适用于我与世博应用程序一起使用的任何设备,包括安卓和 iOS。我尝试应用 autoCorrect={true} 并获得相同的结果。下面的代码和屏幕截图。这是某种博览会配置问题吗?这让我真的卡住了。感谢您的帮助。
编辑:世博小吃链接https://snack.expo.io/S1!cDJ0RS
import React, { Component } from 'react';
import { TextInput, View } from 'react-native';
export default function RespondScreen() {
const [value, onChangeText] = React.useState('Useless Placeholder');
return (
<View style={{justifyContent: 'center', flex:1}}>
<TextInput
style={{ height: 40, borderColor: 'gray', borderWidth: 1 }}
onChangeText={text => onChangeText(text)}
value={value}
/>
</View>
);
}
感谢您的帮助。
【问题讨论】:
-
你能分享一份世博小吃以便我们检查吗?
-
当然,已添加到原始消息中。 snack.expo.io/S1!cDJ0RS
标签: react-native expo textinput autocorrect