'React Native Maps Accessibility label error, Can't render map markers

Error screen

I am getting this error when trying to render a marker on the react-native-maps packages MapView. I have tried to update my version of react native but have encountered many other errors, so I am sticking with 0.38.1. I have tried explicitly setting a prop called 'accessibilityLabel' with a string value but that doesn't work.

<MapView
  region={{
    latitude: this.state.lat,
    longitude: this.state.lng,
    latitudeDelta: this.state.latDelta,
    longitudeDelta: this.state.lngDelta,
  }}
  onRegionChangeComplete={this.onRegionChange}
>
  <MapView.Marker
    coordinate={this.state.marker.latlng}
    title={this.state.marker.title}
  />
</MapView>

Thanks in advance.



Solution 1:[1]

I stumbled across this how to add contentDesctiption to InfoWindow or marker in Android GoogleMaps V2 for TalkBack

Android, at least, works when setting the marker's title or description prop to whatever you want the screen reader to say.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nick Schild