react-native-paper-login-template icon indicating copy to clipboard operation
react-native-paper-login-template copied to clipboard

React does not recognize the `autoCompleteType` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `autocompletetype` instead. If you accidentally passed it from a parent component, remove it from the DOM element. in input (created by TextInput)

Open kopax opened this issue 4 years ago • 1 comments

I am testing the web and I have this warning:

index.js:1 Warning: React does not recognize the `autoCompleteType` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `autocompletetype` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    in input (created by TextInput)

this seems to be where:

      <TextInput
        label="Email or phone number"
        returnKeyType="next"
        value={email.value}
        onChangeText={(text) => setEmail({ value: text, error: '' })}
        error={!!email.error}
        errorText={email.error}
        autoCapitalize="none"
        autoCompleteType="email"
        textContentType="emailAddress"
        keyboardType="email-address"
      />

kopax avatar Mar 03 '20 17:03 kopax

-        autoCompleteType="email"
+        autocompletetype="email"

This remove the warning. Is that ok? Thanks for your time.

kopax avatar Mar 03 '20 17:03 kopax