-
-
Notifications
You must be signed in to change notification settings - Fork 910
Open
Labels
bug 🪲Something isn't workingSomething isn't working
Description
Mapbox Implementation
Mapbox
Mapbox Version
10.1.32
React Native Version
0.74.5
Platform
Android
@rnmapbox/maps
version
10.0.0-beta.32
Standalone component to reproduce
import React from 'react';
import {
MapView,
ShapeSource,
LineLayer,
Camera,
} 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}} onLongPress={() => console.log("long press")}>
<Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
<ShapeSource id="idStreetLayer" shape={aLine}>
<LineLayer id="idStreetLayer" />
</ShapeSource>
</MapView>
);
}
}
Observed behavior and steps to reproduce
onLongPress is triggered only once (during the initial render) on Android, but works as expected on iOS.
Expected behavior
onLongPress should be triggered whenever the user performs a long press on the map.
Notes / preliminary analysis
No response
Additional links and references
No response
dominikjambor, jayjo34, prashantsail, yashp1998, ShantanuTechP and 11 more
Metadata
Metadata
Assignees
Labels
bug 🪲Something isn't workingSomething isn't working