Skip to content

Commit

Permalink
update Error example
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed May 5, 2022
1 parent af8a0bd commit 29b99ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,12 @@ function ErrorExample(): React.Node {
Type error in the below TextInput to display an error message.
</Text>
<TextInput
screenreaderErrorAndroid={error}
screenreaderError={error}
onBlur={() => setError('onBlur')}
onEndEditing={() => setError('onEndEditing')}
onChangeText={newText => {
setText(newText);
if (newText === 'error') {
if (newText === 'Error') {
setError('the newText is: ' + newText);
} else if (newText === 'empty') {
setError('');
Expand Down

0 comments on commit 29b99ba

Please sign in to comment.