maps
maps copied to clipboard
[Bug]: EXPO New architecture problem on android
Mapbox Implementation
Mapbox
Mapbox Version
default v10
React Native Version
0.76
Platform
Android
@rnmapbox/maps version
10.0.0-beta.11
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}}>
<Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
<ShapeSource id="idStreetLayer" shape={aLine}>
<LineLayer id="idStreetLayer" />
</ShapeSource>
</MapView>
);
}
}
Observed behavior and steps to reproduce
When I enable the new architecture in the app.json of my project, and make a dev build, the map freezes on android. I cannot zoom in, zoom out or click anywhere on it. Without the newArchEnabled prop in the app.json, the map works fine.
Expected behavior
No response
Notes / preliminary analysis
No response
Additional links and references
No response