React Native autoCorrect建议不可见

问题描述 投票:0回答:1

我需要一些帮助。

我无法使文本输入键盘显示自动更正建议。该功能在输入EXPO快餐时有效,但不适用于我正在与EXPO应用程序一起使用的任何设备(Android和iOS)。我尝试将autoCorrect = {true}应用于相同的结果。下面的代码和屏幕截图。这是博览会配置问题吗?这真让我陷入困境。感谢您的帮助。

编辑:博览会小吃链接https://snack.expo.io/S1!cDJ0RS

Not Working through expo app

Working on expo snack

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>  
  );
}

谢谢您的协助。

react-native expo textinput autocorrect
1个回答
0
投票

您正在检查coz的手机键盘可能有问题,我在我的手机博览会上尝试了它,并且它的工作正常。参见下面的截图,

enter image description here

希望有帮助。如有疑问,请随时

© www.soinside.com 2019 - 2024. All rights reserved.