Mapbox GL
complete
Nick Italiano
Mapbox recently released it's React Native SDK(react-native-mapbox-gl), would be great to get this in Expo.
Kim Brandwijk
complete
This is now fully supported using EAS and development builds!
@react-native-mapbox-gl/maps
comes with a config plugin and instructions for installation.S
Syed M Umer
any support regarding mapbox navigation sdk in expo like mapbox provides for ios and android
Ngô Lê Gia Hưng
I have a bug when I use @rnmapbox/maps in my Expo app:
"Invariant Violation: Your JavaScript code tried to access a native module that doesn't exist.
If you're trying to use a module that is not supported in Expo Go, you need to create a development build of your app. See https://docs.expo.dev/development/introduction/ for more info., js engine: hermes
ERROR Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and
AppRegistry.registerComponent
wasn't called., js engine: hermes"That is a bug! Please help me fix it!
Fatah RobbySalam
Ngô Lê Gia Hưng: I have the same error, how to fix it?
Wodin
Fatah RobbySalam: Create a new development build after installing it. You will
not
be able to use this in Expo GoDaniel McGrane ⚡️
Yes! Finally, Justice to the devs who have longed for this for years. Thank you
Kim Brandwijk
complete
This is now fully supported using EAS and development builds!
@react-native-mapbox-gl/maps
comes with a config plugin and instructions for installation.J
Justice Nefe
Finally!
j
josef pa
Any Updates?
Evan Bacon
in progress
Update: I've opened a PR to add a prebuild config plugin to
@react-native-mapbox-gl/maps
. When merged, users will be able to add the package to Expo projects built on EAS build, or locally with expo run:ios
and expo run:android
(i.e. after running expo prebuild
to sync the plugin with the native project). We're also still working on the Expo dev client project, which will utilize this proposed config plugin to create a custom dev app that has Mapbox support built-in.
Evan Bacon
The plugin is merged and ready for use! Unfortunately it seems Android R, and simulator support is a bit flakey in the package. I'm going to leave this request open for a bit while they resolve these issues upstream.
Amin Saedi
Evan Bacon: Hi, any new news?
Evan Bacon
Amin Saedi: you can use the module and plugin today, it's mostly up to the mapbox team to make their module run on Android R. If I find some time I can take a look at fixing it myself.
B
Brett
Evan Bacon: As it stands, will this package work with
eas build
?Wodin
Brett: Answering here too: Yes, this works with EAS Build. See my comment on the PR: https://github.com/react-native-mapbox-gl/maps/pull/1388#issuecomment-945917121
Ty Rauber
Hey folks, we @ TheOutbound.com were interested in using Mapbox GL in Expo, so with the EAS announcement, we built an example project demonstrating how to implement react-native-mapbox-gl in Expo using EAS - github.com/TheOutbound/ExpoMapboxGL.
TLDR - you need to eject and use a bare workflow and disable ARM64 for iOS builds. A step-by-step tutorial is outlined in the Readme. Issues and pull requests are welcome. Hope this example helps others.
Thanks to Expo, Brent Vatne and the EAS team. (BTW, we’re hiring outdoorsy react-native / osm / expo devs who like maps - more info at theoutbound.com/jobs).
Sébastien Susini
I have an issue with <MapboxGL.UserLocation>, the UserIndicator work and display fine on IOS, but with android, it's depends, it sometime work, sometime not, and i realize also, that my MapRef.current.setCamera() is undefined when the UserIndicator doesn't display.
this is my post on stack overflow : https://stackoverflow.com/questions/67440184/mapboxgl-react-native-userlocation-indicator-do-not-display-on-map/67440261#67440261
Evan Bacon
Merged in a post:
Integrating MapBox maps in expo
Vincent
This would really go a long way for developers out here, google maps is becoming expensive by the day, and it’s not as interactive as Mapbox with turn by turn navigation. our whole project has been built on expo, we do not want to eject as the current react native package requires linking
Load More
→