Mapbox Implementation
Mapbox
Mapbox Version
10.1.39
React Native Version
0.79.3
Platform
iOS
@rnmapbox/maps version
11.0
Standalone component to reproduce
No component needed, but I used the basic one from the Getting Started guide:
const App = () => {
return (
<View style={styles.page}>
<View style={styles.container}>
<Mapbox.MapView style={styles.map} />
</View>
</View>
);
}
export default App;
Observed behavior and steps to reproduce
After running the following commands:
npx expo install @rnmapbox/maps
npx expo install expo-dev-client
npx expo prebuild --clean
npx expo run:ios
I get the following error:
❌ (ios/Pods/MapboxMaps/Sources/MapboxMaps/Annotations/ViewAnnotationManager.swift:79:19)
77 | @available(*, deprecated, message: "Use ViewAnnotation")
78 | public var annotations: [UIView: ViewAnnotationOptions] {
79 | idsByView.compactMapValues { [mapboxMap] id in
| ^ cannot convert return expression of type '[UIView : ViewAnnotationOptions]' to return type 'Dictionary<String, Optional>.RawValue'
80 | try? mapboxMap.options(forViewAnnotationWithId: id)
81 | }
82 | }
Expected behavior
I expect the app to build without any errors.
Notes / preliminary analysis
No response
Additional links and references
No response
Mapbox Implementation
Mapbox
Mapbox Version
10.1.39
React Native Version
0.79.3
Platform
iOS
@rnmapbox/mapsversion11.0
Standalone component to reproduce
No component needed, but I used the basic one from the Getting Started guide:
Observed behavior and steps to reproduce
After running the following commands:
npx expo install @rnmapbox/mapsnpx expo install expo-dev-clientnpx expo prebuild --cleannpx expo run:iosI get the following error:
Expected behavior
I expect the app to build without any errors.
Notes / preliminary analysis
No response
Additional links and references
No response