From 775ef64ff1c098d23ea623bb67e764a75c30cff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20Fazekas?= Date: Thu, 21 Dec 2023 13:45:44 +0100 Subject: [PATCH] doc: add rebuild section to install guide --- docs/install.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/install.md b/docs/install.md index 5fe6909..9156851 100644 --- a/docs/install.md +++ b/docs/install.md @@ -163,6 +163,39 @@ Add `RNMapboxMapsDownloadToken` to the @rnmapbox/maps [config plugin](https://do +## Rebuild + + + + +```sh +npm run ios +``` + + + + +```sh +npm run android +``` + + + +React Native Mapbox Maps cannot be used in the "Expo Go" app, because it requires [custom native code](https://docs.expo.dev/workflow/customizing/). + +Next, if you are not using EAS Build then you must rebuild your app as described in the ["Adding custom native code"](https://docs.expo.dev/workflow/customizing/) guide to include the config plugin changes. If this command isn't run, you'll not be able use `@rnmapbox/maps`. + +```sh +expo prebuild --clean +``` + + + + ## Using V11 @rnmapbox 10.1 supports both `10.16.*` and `11.0.*` versions, but defaults to `10.16.*`. To use `11.0.*` please configure according to your platform: