callstack / react-native-paper-login-template

The easiest way to start with your application.
https://reactnativepaper.com/
257 stars 71 forks source link

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) #3

Open kopax opened 4 years ago

kopax commented 4 years ago

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 commented 4 years ago
-        autoCompleteType="email"
+        autocompletetype="email"

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