Skip to content

feat: add Expo config plugin and expo-example - #7

Merged
mfazekas merged 3 commits into
mainfrom
feat/expo-example
Oct 21, 2026
Merged

mfazekas merged 3 commits into
mainfrom
feat/expo-example

Conversation

@mfazekas

Copy link
Copy Markdown
Contributor

Adds an @rnmapbox/navigation Expo config plugin and an Expo SDK 58 expo-example workspace with the bare example's navigation screen, built from source like example/. With only the @rnmapbox/maps plugin the iOS build fails with a duplicate MapboxMaps module, so the plugin sets $RNMapboxMapsSwiftPackageManager = { link: false }, adds the Navigation SDK's binary frameworks to rnmapbox-maps' framework search paths (needed with explicit Swift modules on React Native 0.88+), and sets the location usage string. Android needs nothing beyond the maps plugin. CI gets build-expo-android and build-expo-ios jobs that run expo prebuild and build the app.

The plugin sets $RNMapboxMapsSwiftPackageManager = { link: false } so the
app links one MapboxMaps (the Navigation SDK's), adds the SDK package's
binary frameworks to rnmapbox-maps' framework search paths for explicit
Swift modules (React Native 0.88+), and sets the location usage string.
Android needs nothing beyond the @rnmapbox/maps plugin.

expo-example is an Expo SDK 58 app with the navigation screen of the bare
example, built in CI after expo prebuild.
react-native-builder-bob 0.43 has no metro-config. Also export
app.plugin.js so Node resolution of the plugin works.
A partial cache restore runs yarn install, but yarn only reruns
postinstall for workspaces whose dependencies changed.
@mfazekas
mfazekas merged commit 4c9375a into main Oct 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant