mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add prop to configure importantForAutofill. (#22763)
Summary: In API 26, autofill framework was introduced in Android. Read more about Autofill at https://developer.android.com/guide/topics/text/autofill. Now, if in case for some text input if developer wants to disable autofill then he can take help from this `importantForAutoFill` prop and pass `no` to it. Also important of auto fill can be configured with this prop, like: * `auto`: Let the Android System use its heuristics to determine if the view is important for autofill. * `no`: This view isn't important for autofill. * `noExcludeDescendants`: This view and its children aren't important for autofill. * `yes`: This view is important for autofill. * `yesExcludeDescendants`: This view is important for autofill, but its children aren't important for autofill. Default value if `auto`. Read more at: https://developer.android.com/guide/topics/text/autofill-optimize Changelog: ---------- [Android] [Added] - Add prop to configure `importantForAutofill` in `TextInput`. Pull Request resolved: https://github.com/facebook/react-native/pull/22763 Differential Revision: D14121242 Pulled By: cpojer fbshipit-source-id: aa4360480dd19f6dde66f0409d26a41a6a318c94
This commit is contained in:
committed by
Mike Grabowski
parent
ffa6d2921a
commit
f6ca4d0a96
@@ -245,6 +245,13 @@ type AndroidProps = $ReadOnly<{|
|
||||
underlineColorAndroid?: ?ColorValue,
|
||||
inlineImageLeft?: ?string,
|
||||
inlineImagePadding?: ?number,
|
||||
importantForAutofill?: ?(
|
||||
| 'auto'
|
||||
| 'no'
|
||||
| 'noExcludeDescendants'
|
||||
| 'yes'
|
||||
| 'yesExcludeDescendants'
|
||||
),
|
||||
|}>;
|
||||
|
||||
type Props = $ReadOnly<{|
|
||||
|
||||
Reference in New Issue
Block a user