Skip to content

Commit

Permalink
Remove accessibilityTraits prop (accessibility) (#24643)
Browse files Browse the repository at this point in the history
Summary:
`accessibilityTraits` and `accessibilityComponentType` were removed on #24344. This PR removes `accessibilityTraits` prop from Fabric as well.

[General] [Removed] - Remove `accessibilityTraits` prop from Fabric.
Pull Request resolved: #24643

Differential Revision: D15120193

Pulled By: cpojer

fbshipit-source-id: 98440ac447569c26205fc38b93ce2591ccf1a3cf
  • Loading branch information
Estevão Lucas authored and facebook-github-bot committed Apr 29, 2019
1 parent bb6f316 commit ca9a55e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,6 @@ - (void)updateProps:(SharedProps)props oldProps:(SharedProps)oldProps
self.accessibilityElement.accessibilityHint = RCTNSStringFromStringNilIfEmpty(newViewProps.accessibilityHint);
}

// `accessibilityTraits`
if (oldViewProps.accessibilityTraits != newViewProps.accessibilityTraits) {
self.accessibilityElement.accessibilityTraits =
RCTUIAccessibilityTraitsFromAccessibilityTraits(newViewProps.accessibilityTraits);
}

// `accessibilityViewIsModal`
if (oldViewProps.accessibilityViewIsModal != newViewProps.accessibilityViewIsModal) {
self.accessibilityElement.accessibilityViewIsModal = newViewProps.accessibilityViewIsModal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ AccessibilityProps::AccessibilityProps(
const RawProps &rawProps)
: accessible(
convertRawProp(rawProps, "accessible", sourceProps.accessible)),
accessibilityTraits(convertRawProp(
rawProps,
"accessibilityTraits",
sourceProps.accessibilityTraits)),
accessibilityLabel(convertRawProp(
rawProps,
"accessibilityLabel",
Expand Down

0 comments on commit ca9a55e

Please sign in to comment.