Back out "1/2 TextInput accessibilityErrorMessage (Talkback, Android)"

Summary:
This diff is reverting PR https://github.com/facebook/react-native/pull/33468

Due to an increase of java.lang.IllegalStateException caused by the PR

Original commit changeset: cd80e9a1be8f

Original Phabricator Diff: D38410635

Changelog:
[Android][Fixed] - removed logic that calls the [AccessibilityNodeInfo#setError][10] and [#setContentInvalid][13] method to display the error message in the TextInput - Revert of PR https://github.com/facebook/react-native/pull/33468

Reviewed By: NickGerleman, makovkastar

Differential Revision: D44032331

fbshipit-source-id: 732ed0cf23e4f30ae00c51dace851a3fdfe65c01
This commit is contained in:
David Vacca authored and Facebook GitHub Bot committed 2023-03-14 05:42:06 -07:00
1 parent 21d530208f
commit ca0d565a3c
16 files changed
+10 -280

No files matched your search

@@ -523,14 +523,6 @@ export type Props = $ReadOnly<{|
...IOSProps,
...AndroidProps,
/**
* String to be read by screenreaders to indicate an error state. The acceptable parameters
* of accessibilityErrorMessage is a string. Setting accessibilityInvalid to true activates
* the error message. Setting accessibilityInvalid to false removes the error message.
*/
accessibilityErrorMessage?: ?Stringish,
accessibilityInvalid?: ?boolean,
/**
* Can tell `TextInput` to automatically capitalize certain characters.
*