输入文本输入时会出现一个图标[关闭]

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

我有以下问题。当我单击输入字段时,边缘底部会出现一个小符号(见图)。那是什么?

只有当我在输入字段中时,这个小符号才会出现。然后又消失了。

现在我开始寻找问题所在,发现如下: 一旦注释掉的属性之一被激活(请参阅代码)。例如:

textContentType="username"
,这个小字符出现在底部。

import React from 'react';
import {View, TextInput} from 'react-native';

const LoginScreen = () => {
  return (
    <View>
        <View>
          <TextInput
            placeholder="E-Mail"
            autoCapitalize="none"
            keyboardType="email-address"
            //textContentType="username"
          />
        </View>
      
        <View>
          <TextInput
            placeholder="Password"
            autoCapitalize="none"
            //secureTextEntry={true}
            //textContentType="password"
          />
        </View>
    </View>
  );
};


export default LoginScreen;

为什么会这样呢?我能做什么呢? 为什么会这样,例如:

textContentType="username"

但不是在

textContentType="emailAddress"

reactjs react-native mobile textinput uitextcontenttype
1个回答
-1
投票

请提供更多相关背景信息以帮助您。检查你的样式,也许你有一些样式规则使得那个小圆圈出现。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.