Skip to content

Commit

Permalink
rename remaing configs to accessibilityErrorMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Jun 7, 2022
1 parent 53d8464 commit cabb212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class ReactTextInputShadowNode extends ReactBaseTextShadowNode
@VisibleForTesting public static final String PROP_SELECTION = "selection";

@VisibleForTesting
public static final String PROP_SCREENREADER_ERROR = "accessibilityErrorMessage";
public static final String PROP_ACCESSIBILITY_ERROR_MESSAGE = "accessibilityErrorMessage";

// Represents the {@code text} property only, not possible nested content.
private @Nullable String mText = null;
Expand Down Expand Up @@ -197,7 +197,7 @@ public void setPlaceholder(@Nullable String placeholder) {
return mPlaceholder;
}

@ReactProp(name = PROP_SCREENREADER_ERROR)
@ReactProp(name = PROP_ACCESSIBILITY_ERROR_MESSAGE)
public void setScreenreaderError(String accessibilityErrorMessage) {
mAccessibilityErrorMessage = accessibilityErrorMessage;
}
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/res/views/uimanager/values/ids.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<!--tag is used to store accessibilityLinks tag -->
<item type="id" name="accessibility_links"/>

<!--tag is used to store screenreaderError tag to announce TextInput errors -->
<!--tag is used to store accessibilityErrorMessage tag to announce TextInput errors -->
<item type="id" name="accessibility_error_message"/>

<!--tag is used to store accessibilityLabelledBy tag -->
Expand Down

0 comments on commit cabb212

Please sign in to comment.