Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions ios/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ Add the following to your `ios/Podfile`:

<br>

You will need to authorize your download of the Maps SDK with a secret access token with the `DOWNLOADS:READ` scope. This [guide](https://docs.mapbox.com/ios/maps/guides/install/#configure-credentials) explains how to configure the secret token under section `Configure your secret token`.


Run `pod install` to download the proper mapbox dependency.

```sh
Expand Down
3 changes: 3 additions & 0 deletions plugin/build/withMapbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export type MapboxPlugProps = {
*/
RNMapboxMapsImpl?: 'mapbox';
RNMapboxMapsVersion?: string;
/**
* @deprecated Download token is no longer required by Mapbox. Do not set this.
*/
RNMapboxMapsDownloadToken?: string;
RNMapboxMapsUseV11?: boolean;
};
Expand Down
19 changes: 0 additions & 19 deletions plugin/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ After installing this package, add the [config plugin](https://docs.expo.io/guid
}
```

You'll need to provide a download token. Set the `RNMAPBOX_MAPS_DOWNLOAD_TOKEN` environment variable to your download token (requires the `DOWNLOADS:READ` scope):

```bash
export RNMAPBOX_MAPS_DOWNLOAD_TOKEN="sk.ey...qg"
npx expo prebuild
```

For more information about obtaining a download token, refer to the [iOS guide](https://docs.mapbox.com/ios/maps/guides/install/#configure-credentials), which explains how to configure this token under the section `Configure your secret token`.

If you want to show the user's current location on the map with the [UserLocation](../docs/UserLocation.md) component, you can use the [expo-location](https://docs.expo.dev/versions/latest/sdk/location/) plugin to configure the required `NSLocationWhenInUseUsageDescription` property. Install the plugin with `npx expo install expo-location` and add its config plugin to the plugins array of your `app.{json,config.js,config.ts}`:

```json
Expand Down Expand Up @@ -92,16 +83,6 @@ To use V11 just set the version to a 11 version, see [the ios guide](/ios/instal
}
```

### Download Token Configuration

For Expo projects, we recommend using the `RNMAPBOX_MAPS_DOWNLOAD_TOKEN` environment variable:

```bash
# Set the environment variable before building
export RNMAPBOX_MAPS_DOWNLOAD_TOKEN="sk.ey...qg"
npx expo prebuild
```

## Manual Setup

For bare workflow projects, you can follow the manual setup guides:
Expand Down
3 changes: 3 additions & 0 deletions plugin/src/withMapbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export type MapboxPlugProps = {

RNMapboxMapsVersion?: string;

/**
* @deprecated Download token is no longer required by Mapbox. Do not set this.
*/
RNMapboxMapsDownloadToken?: string;

RNMapboxMapsUseV11?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion rnmapbox-maps.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# product_name: "Mapbox"
# }
# ```
# $RNMapboxMapsDownloadToken - *expo only* download token
# $RNMapboxMapsDownloadToken - *deprecated* download token is no longer required
# $RNMapboxMapsCustomPods - use a custom pod for mapbox libs

require 'json'
Expand Down
Loading