Skip to content

Commit

Permalink
doc: add rebuild section to install guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mfazekas committed Dec 21, 2023
1 parent ae70436 commit 775ef64
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,39 @@ Add `RNMapboxMapsDownloadToken` to the @rnmapbox/maps [config plugin](https://do
</TabItem>
</Tabs>

## Rebuild

<Tabs groupId="rebuild" queryString defaultValue="expo" values={[
{label:'iOS', value: 'ios'},
{label:'Android', value: 'android'},
{label:'Expo', value: 'expo'}
]}>
<TabItem value="ios">

```sh
npm run ios
```

</TabItem>
<TabItem value="android">

```sh
npm run android
```

</TabItem>
<TabItem value="expo">
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
```

</TabItem>
</Tabs>

## 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:
Expand Down

0 comments on commit 775ef64

Please sign in to comment.