From 72285d808dfce748287a19e2620d58517a5f76e7 Mon Sep 17 00:00:00 2001 From: Chris Dadabo <2096864+CMDadabo@users.noreply.github.com> Date: Mon, 29 Jun 2020 12:55:20 -0700 Subject: [PATCH] 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: https://github.com/facebook/react-native/pull/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 --- Libraries/Components/Touchable/TouchableNativeFeedback.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/Components/Touchable/TouchableNativeFeedback.js b/Libraries/Components/Touchable/TouchableNativeFeedback.js index 5dc03df8770fd8..dda6c4bf371093 100644 --- a/Libraries/Components/Touchable/TouchableNativeFeedback.js +++ b/Libraries/Components/Touchable/TouchableNativeFeedback.js @@ -271,6 +271,7 @@ class TouchableNativeFeedback extends React.Component { this.props.useForeground === true, ), accessible: this.props.accessible !== false, + accessibilityHint: this.props.accessibilityHint, accessibilityLabel: this.props.accessibilityLabel, accessibilityRole: this.props.accessibilityRole, accessibilityState: this.props.accessibilityState,