[Bug]: <MapboxGL.UserLocation showsUserHeadingIndicator /> Gives error
Mapbox Implementation
Mapbox
Mapbox Version
10.1.38
React Native Version
0.79.0
Platform
Android
@rnmapbox/maps version
10.1.38
Standalone component to reproduce
import React from 'react';
import {
MapView,
Camera,
UserLocation
} from '@rnmapbox/maps';
const aLine = {
type: 'LineString',
coordinates: [
[-74.00597, 40.71427],
[-74.00697, 40.71527],
],
};
class BugReportExample extends React.Component {
render() {
return (
<MapView style={{flex: 1}}>
<Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
<UserLocation visible={true} showsUserHeadingIndicator />
</MapView>
);
}
}
console.js:654 Warning: Invalid prop sourceID supplied to React.Fragment. React.Fragment can only have key and children props.
at RNMBXShapeSource (
Observed behavior and steps to reproduce
No response
Expected behavior
No response
Notes / preliminary analysis
No response
Additional links and references
No response
I have the same issue on RN 0.79.2, rnmapbox/maps: 10.1.37.
Did anyone find a workaround for this? I am having to use different versions for ios & android for production releases.
Duplicate: https://github.com/rnmapbox/maps/issues/3826 (patch also available there)
Pull request for fix: https://github.com/rnmapbox/maps/pull/3837
fixed in latest release