-
-
Notifications
You must be signed in to change notification settings - Fork 926
Open
Labels
bug 🪲Something isn't workingSomething isn't working
Description
Mapbox Implementation
Mapbox
Mapbox Version
11.15.2
React Native Version
0.77.3
React Native Architecture
New Architecture (Fabric/TurboModules)
Platform
iOS
@rnmapbox/maps version
10.2.6
Standalone component to reproduce
// ⚠️ NOT directly reproducible, example only.
// Crash happens in production when using experimental animators.
import React from 'react';
import Mapbox, {
MapView,
ShapeSource,
LineLayer,
Camera,
__experimental
} from '@rnmapbox/maps';
const line = {
type: 'LineString',
coordinates: [
[-74.00597, 40.71427],
[-74.00697, 40.71527],
],
};
export default function BugReportExample() {
// Example of using animators involved in crashes:
const moveAnimator = new __experimental.MovePointShapeAnimator([-74.00597, 40.71427]);
const offsetAnimator = new __experimental.ChangeLineOffsetsShapeAnimator({
coordinates: line.coordinates,
startOffset: 0,
endOffset: 0,
});
// In production, we call moveTo()/setEndOffset() repeatedly during animation
return (
<MapView style={{flex: 1}}>
<Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
<ShapeSource id="line-source" shape={offsetAnimator}>
<LineLayer id="line-layer" />
</ShapeSource>
<ShapeSource id="point-source" shape={moveAnimator} />
</MapView>
);
}Observed behavior and steps to reproduce
When using the new architecture on React Native 0.77.3, calling new __experimental.ChangeLineOffsetsShapeAnimator(...) throws the following error:
Expected behavior
No response
Notes / preliminary analysis
No response
Additional links and references
No response
krisnaItsAVirus
Metadata
Metadata
Assignees
Labels
bug 🪲Something isn't workingSomething isn't working