Skip to content

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

@baralmanish

Description

@baralmanish

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions