We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 300ba7a commit 1592a8dCopy full SHA for 1592a8d
ReactAndroid/src/main/java/com/facebook/react/uimanager/AccessibilityDelegateUtil.java
@@ -76,11 +76,11 @@ public static String getValue(AccessibilityRole role) {
76
77
public static AccessibilityRole fromValue(@Nullable String value) {
78
for (AccessibilityRole role : AccessibilityRole.values()) {
79
- if (role.getValue() != null && role.getValue().equals(value)) {
+ if (role.name().equalsIgnoreCase(value)) {
80
return role;
81
}
82
83
- return AccessibilityRole.NONE;
+ throw new IllegalArgumentException("Invalid accessibility role value: " + value);
84
85
86
0 commit comments