react-native-paper-login-template
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)
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"
/>
- autoCompleteType="email"
+ autocompletetype="email"
This remove the warning. Is that ok? Thanks for your time.