Skip to content

Commit 38d7512

Browse files
committed
Fix incorrect clarifications
1 parent 035840b commit 38d7512

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ import React from 'react';
111111
import { StyleSheet, View } from 'react-native';
112112
import Mapbox from '@rnmapbox/maps';
113113

114-
Mapbox.setAccessToken('<YOUR_ACCESSTOKEN>');
114+
Mapbox.setAccessToken('<YOUR_PUBLIC_ACCESS_TOKEN_STARTING_WITH_pk.ey>');
115115

116116
const App = () => {
117117
return (

docs/GettingStarted.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Once you have your accessToken, set it like this
1515
```js
1616
import MapboxGL from "@rnmapbox/maps";
1717

18-
MapboxGL.setAccessToken("<YOUR_ACCESSTOKEN>");
18+
MapboxGL.setAccessToken("<YOUR_PUBLIC_ACCESS_TOKEN_STARTING_WITH_pk.ey>");
1919
```
2020

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

53-
MapboxGL.setAccessToken("<YOUR_ACCESSTOKEN>");
53+
MapboxGL.setAccessToken("<YOUR_PUBLIC_ACCESS_TOKEN_STARTING_WITH_pk.ey>");
5454

5555
const styles = StyleSheet.create({
5656
page: {

plugin/install.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ After installing this package, add the [config plugin](https://docs.expo.io/guid
2828
}
2929
```
3030

31-
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 the same string you will pass to Mapbox.setAccessToken().
31+
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()`.
3232

3333
```json
3434
{
@@ -37,7 +37,7 @@ You'll need to provide `RNMapboxMapsDownloadToken` as well. This secret token re
3737
[
3838
"@rnmapbox/maps",
3939
{
40-
"RNMapboxMapsDownloadToken": "your-secret-access-token-from-mapbox"
40+
"RNMapboxMapsDownloadToken": "YOUR_SECRET_ACCESS_TOKEN_STARTING_WITH_sk.ey"
4141
}
4242
]
4343
]

0 commit comments

Comments
 (0)