Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify Expo plugin configuration instructions #3383

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ import React from 'react';
import { StyleSheet, View } from 'react-native';
import Mapbox from '@rnmapbox/maps';

Mapbox.setAccessToken('<YOUR_ACCESSTOKEN>');
Mapbox.setAccessToken('<YOUR_PUBLIC_ACCESS_TOKEN_STARTING_WITH_pk.ey>');

const App = () => {
return (
Expand Down
4 changes: 2 additions & 2 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Once you have your accessToken, set it like this
```js
import MapboxGL from "@rnmapbox/maps";

MapboxGL.setAccessToken("<YOUR_ACCESSTOKEN>");
MapboxGL.setAccessToken("<YOUR_PUBLIC_ACCESS_TOKEN_STARTING_WITH_pk.ey>");
```

## Setting connection status [Android only]
Expand Down Expand Up @@ -50,7 +50,7 @@ import React, { Component } from "react";
import { StyleSheet, View } from "react-native";
import MapboxGL from "@rnmapbox/maps";

MapboxGL.setAccessToken("<YOUR_ACCESSTOKEN>");
MapboxGL.setAccessToken("<YOUR_PUBLIC_ACCESS_TOKEN_STARTING_WITH_pk.ey>");

const styles = StyleSheet.create({
page: {
Expand Down
4 changes: 2 additions & 2 deletions plugin/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ After installing this package, add the [config plugin](https://docs.expo.io/guid
}
```

You'll need to provide `RNMapboxMapsDownloadToken` as well. This secret token requires the `DOWNLOADS:READ` scope. You can 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`.
You'll need to provide `RNMapboxMapsDownloadToken` as well. This secret token requires the `DOWNLOADS:READ` scope. You can 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`. This is NOT the same as the public token string passed to `Mapbox.setAccessToken()`.

```json
{
Expand All @@ -37,7 +37,7 @@ You'll need to provide `RNMapboxMapsDownloadToken` as well. This secret token re
[
"@rnmapbox/maps",
{
"RNMapboxMapsDownloadToken": "sk.ey...qg"
"RNMapboxMapsDownloadToken": "YOUR_SECRET_ACCESS_TOKEN_STARTING_WITH_sk.ey"
}
]
]
Expand Down
Loading