Cassio Zen 179d490607 Add autoComplete prop (#21575)
Summary:
TL;DR: Setting `autoComplete` will allow the system to suggest autofill options for the `<TextInput>` component.

Android Oreo introduced the AutoFill Framework, for secure communication between an app and autofill services (e.g. Password managers). When using `<TextInput>` on Android Oreo+, the system already tries to autofill (based on heuristics), but there is no way to set configuring options or disable.

The quick solution would be to just add the same Android attributes (`autofillHints` & `importantForAutofill`) in React Native TextInput, but that doesn't bond well with the cross-platform nature of the library.

Introduces an `autoComplete` prop based on HTML's `autocomplete` attribute, mapping to Android `autofillHints` & `importantForAutofill` and serving as a proper placeholder for autofill/autocomplete in other platforms:

Also gives you the ability to disable autofill by setting autocomplete="off".
Pull Request resolved: https://github.com/facebook/react-native/pull/21575

Differential Revision: D14102949

Pulled By: hramos

fbshipit-source-id: 7601aeaca0332a1f3ce8da8020dba037b700853a
2019-02-18 17:30:38 +01:00
..
2019-02-12 07:38:42 -08:00
2019-02-04 17:46:56 -08:00
2018-12-11 20:01:00 -08:00
2019-02-18 17:30:38 +01:00
2019-02-15 16:38:54 +01:00
2019-02-01 09:35:42 -08:00
2019-01-17 02:41:59 -08:00
2019-01-28 03:57:42 -08:00
2019-02-11 16:50:40 -08:00
2018-10-31 01:37:26 -07:00
2019-02-04 17:46:56 -08:00
2018-09-27 14:18:31 -07:00
2019-02-11 09:06:43 -08:00
2018-11-26 06:28:24 -08:00