Skip to content

Commit

Permalink
Fix incorrect clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
pwellner committed Feb 19, 2024
1 parent 035840b commit 38d7512
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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`. This is the same string you will pass to Mapbox.setAccessToken().
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": "your-secret-access-token-from-mapbox"
"RNMapboxMapsDownloadToken": "YOUR_SECRET_ACCESS_TOKEN_STARTING_WITH_sk.ey"
}
]
]
Expand Down

0 comments on commit 38d7512

Please sign in to comment.