Skip to content

Commit 72285d8

Browse files
CMDadabofacebook-github-bot
authored andcommitted
Add accessibilityHint to TouchableNativeFeedback (#29154)
Summary: The docs suggest that TouchableNativeFeedback [inherits `TouchableWithoutFeedback` props](https://reactnative.dev/docs/touchablewithoutfeedback#props) but `accessibilityHint` was missing. ## Changelog [Android] [Added] - Add accessibilityHint to TouchableNativeFeedback Pull Request resolved: #29154 Test Plan: Not sure how this should be tested, but I'm happy to implement what others may suggest Reviewed By: kacieb Differential Revision: D22109459 Pulled By: TheSavior fbshipit-source-id: 573267a26414a97ba23a1a7995bff1608f9ba34f
1 parent f8c68bf commit 72285d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Libraries/Components/Touchable/TouchableNativeFeedback.js

+1
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ class TouchableNativeFeedback extends React.Component<Props, State> {
271271
this.props.useForeground === true,
272272
),
273273
accessible: this.props.accessible !== false,
274+
accessibilityHint: this.props.accessibilityHint,
274275
accessibilityLabel: this.props.accessibilityLabel,
275276
accessibilityRole: this.props.accessibilityRole,
276277
accessibilityState: this.props.accessibilityState,

0 commit comments

Comments
 (0)