maps icon indicating copy to clipboard operation
maps copied to clipboard

[Bug]: <MapboxGL.UserLocation showsUserHeadingIndicator /> Gives error

Open baralmanish opened this issue 9 months ago • 4 comments

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 () at ShapeSource (http://19.0.2.2:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.maptify&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server:181895:36) at Animated(Anonymous) (http://19.0.2.2:8081/index.bundle//&platform=android&dev=true&lazy=true&minify=false&app=com.maptify&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server:62098:47)

Observed behavior and steps to reproduce

No response

Expected behavior

No response

Notes / preliminary analysis

No response

Additional links and references

No response

baralmanish avatar Apr 28 '25 05:04 baralmanish

I have the same issue on RN 0.79.2, rnmapbox/maps: 10.1.37.

xaiamov avatar May 08 '25 20:05 xaiamov

Did anyone find a workaround for this? I am having to use different versions for ios & android for production releases.

avinash2407 avatar May 22 '25 07:05 avinash2407

Duplicate: https://github.com/rnmapbox/maps/issues/3826 (patch also available there)

Pull request for fix: https://github.com/rnmapbox/maps/pull/3837

cixio avatar Jun 02 '25 09:06 cixio

fixed in latest release

cixio avatar Oct 08 '25 17:10 cixio