Need help to setup Expo and Rn Mapbox #3086
-
Hi I created a small project and i had some trouble to install it at first and solved it with a webpack config and some dependencies like worker-loader. const App = () => {
const pointAnnotation = useRef<Mapbox.PointAnnotation>(null);
return (
<Mapbox.MapView style={styles.map}>
<Mapbox.Camera
defaultSettings={{
centerCoordinate: [-74.00597, 40.71427],
zoomLevel: 12,
}}
/>
<Mapbox.PointAnnotation
id="annotation"
coordinate={[-74.00597, 40.71427]}
title="test"
draggable
ref={pointAnnotation}
>
<Mapbox.Callout title="This is a sample loading a remote image" />
</Mapbox.PointAnnotation>
</Mapbox.MapView>
);
}; I get those errors Any idea on how to solve it ? To reproduce it : Repo |
Beta Was this translation helpful? Give feedback.
Answered by
mfazekas
Sep 28, 2023
Replies: 1 comment 1 reply
-
@TheUncharted are you trying to run it on the web? Web support is very incomplete and experimental Pls add the command to build/start. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TheUncharted
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@TheUncharted are you trying to run it on the web? Web support is very incomplete and experimental
Pls add the command to build/start.