[Bug]: showsUserHeadingIndicator is not working on Android
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 2.9k
- Forks
- 947
- Avg merge
- 6d 37m
- Merged PRs (30d)
- 1
Description
Mapbox Implementation
Mapbox
Mapbox Version
default
Platform
Android
@rnmapbox/maps version
10.0.13
Standalone component to reproduce
import React from 'react';
import {
MapView,
Camera,
UserLocation
} from '@rnmapbox/maps';
class Example extends React.Component {
render() {
return (
<MapView
logoEnabled={false}
style={{ flex: 1 }}
attributionEnabled={false}
styleURL="mapbox://styles/mapbox/satellite-streets-v11"
scaleBarEnabled={false}
>
<UserLocation
visible
showsUserHeadingIndicator
/>
</MapView>
);
}
}
Observed behavior and steps to reproduce
After updating to the latest version of rnmapbox 10.0.13, I've seen that this property has no effect on Android devices.
Android:
iOS:
Expected behavior
The heading indicator should be shown in Android when the property is set to true.
Notes / preliminary analysis
No response
Additional links and references
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the standalone React Native example on Android with @rnmapbox/maps 10.0.13, then trace the UserLocation component and the showsUserHeadingIndicator property through the Android implementation. Done means the heading indicator is visible on Android when the property is true, matching the reported iOS behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript, kotlin, react-native
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100