React native React无法识别DOM元素上的“enterKeyHint”属性

React native React无法识别DOM元素上的“enterKeyHint”属性,react-native,styled-components,React Native,Styled Components,实现样式化组件和滚动视图的react本机应用程序正在工作,但向我发出以下警告: index.js:1 Warning: React does not recognize the `enterKeyHint` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `enterkeyhint` instead. If y

实现样式化组件和滚动视图的react本机应用程序正在工作,但向我发出以下警告:

index.js:1 Warning: React does not recognize the `enterKeyHint` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `enterkeyhint` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    in input (created by TextInput)
    in TextInput (created by Context.Consumer)
    in StyledNativeComponent (created by Styled(TextInput))
    in Styled(TextInput) (at Signup.js:96)
    in div (created by View)
    in View (created by ScrollView)
    in div (created by View)
    in View (created by ForwardRef)
    in ForwardRef (created by ScrollView)
    in ScrollView (at Signup.js:95)
这是组件的渲染:

 return (
        <BasicView>
            {isLoading && <Preloader/>}
            <ScrollView>
      LOC 96 -> <BasicInput placeholder="email" value={email} onChangeText={(val) => setEmail(val)}/>
                <BasicInput placeholder="password" value={password} onChangeText={(val) => setPassword(val)}
                            maxLength={15} secureTextEntry={true}/>
                <BasicInput placeholder="name" value={displayName} onChangeText={(val) => setDisplayName(val)}/>
                <Button title="Signup" onPress={() => registerUser()}/>
                <BasicLink onPress={() => props.navigation.navigate(NavigationLocations.LOGIN)}>
                    Already registered? Click here to log in...
                </BasicLink>
            </ScrollView>
        </BasicView>
    )

enterKeyHint
指的是什么?我应该执行什么更正?

问题来自React Native Web。 不确定显示在哪个版本中。 无论如何,我回到了版本0.12.3,我不再收到这个警告

enterKeyHint是用于虚拟键盘的html属性。这是一种重命名[ENTER]键的方法。


该警告不会出现在Andoid或iOS上。因此,如果您不愿意降级React本机Web版本,您可以安全地忽略此警告,因为您很可能不需要重命名Web虚拟键盘上的[ENTER]键。

问题来自React本机Web。 不确定显示在哪个版本中。 无论如何,我回到了版本0.12.3,我不再收到这个警告

enterKeyHint是用于虚拟键盘的html属性。这是一种重命名[ENTER]键的方法。


该警告不会出现在Andoid或iOS上。因此,如果您不愿意降级您的React原生Web版本,您可以安全地忽略此警告,因为您很可能不需要重命名Web虚拟键盘上的[ENTER]键。

您知道禁用此警告的方法吗?除了降级,否。您知道禁用此警告的方法吗?除了降级,否。
export const BasicInput = styled.TextInput`
    width: 100%;
    margin-bottom: 15px;
    padding-bottom: 15px;  
    align-self: center;
    border-color: #ccc;
    border-bottom-width: 1px;
`;