mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Keyboard accessibility improvements (#24359)
Summary: In order to meet our accessibility requirements we need to have full support for keyboard navigation. The Touchable components works with press/tap with a finger, but doesn't respond to 'enter' when using a keyboard. Navigation works fine. This PR adds an onClick listener to touchable views that have the onPress prop defined. [Android] [Added] - Add View.OnClickListener to Touchable components when onPress is defined Pull Request resolved: https://github.com/facebook/react-native/pull/24359 Differential Revision: D14971230 Pulled By: cpojer fbshipit-source-id: ca5559ca1308ee6c338532a00dcea4d00fa57f42
This commit is contained in:
committed by
Facebook Github Bot
parent
a1250da646
commit
01bcde3ed8
@@ -83,6 +83,7 @@ import java.util.Map;
|
||||
.put("topLoadingStart", MapBuilder.of(rn, "onLoadingStart"))
|
||||
.put("topSelectionChange", MapBuilder.of(rn, "onSelectionChange"))
|
||||
.put("topMessage", MapBuilder.of(rn, "onMessage"))
|
||||
.put("topClick", MapBuilder.of(rn, "onClick"))
|
||||
// Scroll events are added as per task T22348735.
|
||||
// Subject for further improvement.
|
||||
.put("topScrollBeginDrag", MapBuilder.of(rn, "onScrollBeginDrag"))
|
||||
|
||||
Reference in New Issue
Block a user