我有以下问题。当我单击输入字段时,边缘底部会出现一个小符号(见图)。那是什么?
只有当我在输入字段中时,这个小符号才会出现。然后又消失了。
现在我开始寻找问题所在,发现如下: 一旦注释掉的属性之一被激活(请参阅代码)。例如:
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"
请提供更多相关背景信息以帮助您。检查你的样式,也许你有一些样式规则使得那个小圆圈出现。