Skip to content

[iOS] Expose isAccessibilityElement as a prop#3115

Merged
rborn merged 2 commits intoreact-native-maps:masterfrom
computerjazz:dm-exposeIsAccessibilityElement
Oct 10, 2019
Merged

[iOS] Expose isAccessibilityElement as a prop#3115
rborn merged 2 commits intoreact-native-maps:masterfrom
computerjazz:dm-exposeIsAccessibilityElement

Conversation

@computerjazz
Copy link
Copy Markdown
Contributor

Does any other open PR do the same thing?

No

What issue is this PR fixing?

#3114

When the MapView has isAccessibilityElement: YES, the map captures any accessibility taps and does not forward them on to the markers. Passing an isAccessibilityElement prop allows the developer to expose map children (ie markers) to VoiceOver and/or other accessibility tools.

How did you test this PR?

  • Created a map with custom markers.
  • Set isAccessibilityElement: false on map.
  • Turned VoiceOver on
  • Tapped on markers
  • Verified that VoiceOver recognized markers, allowed me to tap into them

@rborn
Copy link
Copy Markdown
Collaborator

rborn commented Oct 7, 2019

This looks great, any chance to do it for android too (if it's not there already) ? 😻

@computerjazz
Copy link
Copy Markdown
Contributor Author

Makes sense, I can do that.

The reason I didn't do that here is that Android does not exhibit the same issues as iOS -- when TalkBack is on, markers are still tappable. But I agree exposing the prop cross-platform is the right move.

@computerjazz
Copy link
Copy Markdown
Contributor Author

although hm -- isAccessibilityElement is an iOS-only concept.

@rborn
Copy link
Copy Markdown
Collaborator

rborn commented Oct 8, 2019

Ok, in this case can we document the new property and mention is iOs only?
Also, if this works in Android out of the box, maybe we should set it default to true so the users don't really have to do anything to get this, only to be able to disable it if they need it for some reason ?

@rborn
Copy link
Copy Markdown
Collaborator

rborn commented Oct 9, 2019

@computerjazz ^^

@computerjazz
Copy link
Copy Markdown
Contributor Author

Sounds good -- will do.

@rborn rborn merged commit 35282eb into react-native-maps:master Oct 10, 2019
@rborn
Copy link
Copy Markdown
Collaborator

rborn commented Oct 10, 2019

@computerjazz ❤️

yuheidapperapps added a commit to yuheidapperapps/react-native-maps that referenced this pull request Oct 15, 2019
* master: (31 commits)
  Wider Note column (prevent horisontal scroll) (react-native-maps#3130)
  replaced deprecated bridge.imageLoader calls with moduleForClass API (react-native-maps#3125)
  Implement onUserLocationChange in AIRMap (react-native-maps#2889)
  keep current mapType when taking snapshot (react-native-maps#3120)
  Add mapPadding on iOS maps (react-native-maps#3119)
  [iOS] Expose isAccessibilityElement as a prop (react-native-maps#3115)
  Add supportLibVersion safeguard in gradle build (react-native-maps#3106)
  [0.26.1] Release
  rn 0.60.5 support (react-native-maps#3020)
  "AIRMap" was not found in the UIManager IN "0.26.0" (react-native-maps#3103)
  [0.26.0] Release
  Add Heatmap back in (react-native-maps#3064)
  Fixes NPE while removing already removed marker. (react-native-maps#3032)
  Add flat property binding on Marker for iOS (react-native-maps#3051)
  Add heading to the onUserLocationChange listener (react-native-maps#3045)
  Add onDoublePress callback (react-native-maps#2937)
  Allow using onPanDrag while scrollEnabled=true (react-native-maps#2935)
  updating pods for compile error (react-native-maps#3011)
  add overlay onPress event (react-native-maps#3007)
  Fix playServicesVersion name in installation docs (react-native-maps#3016)
  ...
pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
* [iOS] Expose isAccessibilityElement as a prop

* Set default isAccessibilityElement to NO, update readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants