{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/1341","repository_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl","labels_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/1341/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/1341/comments","events_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/1341/events","html_url":"https://github.com/mapbox/react-native-mapbox-gl/issues/1341","id":353181749,"node_id":"MDU6SXNzdWUzNTMxODE3NDk=","number":1341,"title":"SET MAPBOX ACCESS TOKEN NOT WORKING!!!","user":{"login":"alexxsanchezm","id":3522488,"node_id":"MDQ6VXNlcjM1MjI0ODg=","avatar_url":"https://avatars2.githubusercontent.com/u/3522488?v=4","gravatar_id":"","url":"https://api.github.com/users/alexxsanchezm","html_url":"https://github.com/alexxsanchezm","followers_url":"https://api.github.com/users/alexxsanchezm/followers","following_url":"https://api.github.com/users/alexxsanchezm/following{/other_user}","gists_url":"https://api.github.com/users/alexxsanchezm/gists{/gist_id}","starred_url":"https://api.github.com/users/alexxsanchezm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexxsanchezm/subscriptions","organizations_url":"https://api.github.com/users/alexxsanchezm/orgs","repos_url":"https://api.github.com/users/alexxsanchezm/repos","events_url":"https://api.github.com/users/alexxsanchezm/events{/privacy}","received_events_url":"https://api.github.com/users/alexxsanchezm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-23T01:15:52Z","updated_at":"2018-11-05T06:17:07Z","closed_at":"2018-08-24T01:39:08Z","author_association":"NONE","body":"\r\nTo start this report I already review the issue #1083.\r\n\r\nI really appreciate the work this community is doing, but this issue is real and very easy to reproduce.\r\n\r\nIt seems the current way to `setAccessToken('token_string')` is not working properly at least on android. After follow every step of the documentation there is no way to get any of my demos running with the mapbox implementation for RN, any time this is the result.\r\n\r\n<img width=\"257\" alt=\"screen shot 2018-08-22 at 7 42 31 pm\" src=\"https://user-images.githubusercontent.com/3522488/44498367-a705e080-a643-11e8-80ea-53dd48c69b4c.png\">\r\n\r\nMy guess is, there is something missing in the documentation which is vital to get this running on android.\r\n\r\nSteps to reproduce the issue:\r\n\r\n1. Create a RN project with `react-native init mapboxcrash`\r\n2. Setup your project with mapbox.\r\n    * yarn add @mapbox/react-native-mapbox-gl\r\n    * Setup this files build.gradle, app:build.gradle, settings.gradle, MainApplication.java, [see doc](https://github.com/mapbox/react-native-mapbox-gl/blob/master/android/install.md).\r\n 3. Impement jsx code in the App.js file.\r\n 4. Run `react-native run-android`.\r\n 5. Boom!!! got the error.\r\n\r\nSome configuration files in case some one wants to check.\r\n```\r\nimport React, {Component} from 'react';\r\nimport { StyleSheet } from 'react-native';\r\nimport MapboxGL from '@mapbox/react-native-mapbox-gl';\r\nimport conf from './conf';\r\n\r\nMapboxGL.setAccessToken(conf['accestoken']);\r\n\r\ntype Props = {};\r\nexport default class App extends Component<Props> {\r\n  render() {\r\n    return (\r\n        <MapboxGL.MapView\r\n            showUserLocation={true}\r\n            zoomLevel={ 16 }\r\n            styleURL={ MapboxGL.StyleURL.Street }\r\n            centerCoordinate={[-82.437465, 8.431490]}\r\n            style={ styles.container }\r\n        />\r\n    );\r\n  }\r\n}\r\n\r\nconst styles = StyleSheet.create({\r\n  container: {\r\n    flex: 1\r\n  }\r\n});\r\n```\r\npackage.json\r\n```\r\n{\r\n  \"name\": \"maptest\",\r\n  \"version\": \"0.0.1\",\r\n  \"private\": true,\r\n  \"scripts\": {\r\n    \"start\": \"node node_modules/react-native/local-cli/cli.js start\",\r\n    \"test\": \"jest\"\r\n  },\r\n  \"dependencies\": {\r\n    \"@babel/core\": \"7.0.0-beta.47\",\r\n    \"@mapbox/react-native-mapbox-gl\": \"^6.1.2\",\r\n    \"babel-core\": \"^6.26.3\",\r\n    \"react\": \"16.4.1\",\r\n    \"react-native\": \"0.56.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel-jest\": \"23.4.2\",\r\n    \"babel-preset-react-native\": \"^5\",\r\n    \"jest\": \"23.5.0\",\r\n    \"react-test-renderer\": \"16.4.1\"\r\n  },\r\n  \"jest\": {\r\n    \"preset\": \"react-native\"\r\n  }\r\n}\r\n```\r\nWorking under osx high sierra.\r\nRN: 0.56\r\nRN-CLI: 2.0.1\r\n\r\nI know I should request permissions, but i just want to get this issue over. I'm wiling to help no just report issues.\r\n\r\nFinally I'm begging to not close this issue without take a look.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/comments/435766191","html_url":"https://github.com/mapbox/react-native-mapbox-gl/issues/1341#issuecomment-435766191","issue_url":"https://api.github.com/repos/mapbox/react-native-mapbox-gl/issues/1341","id":435766191,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTc2NjE5MQ==","user":{"login":"kotchuprik","id":802946,"node_id":"MDQ6VXNlcjgwMjk0Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/802946?v=4","gravatar_id":"","url":"https://api.github.com/users/kotchuprik","html_url":"https://github.com/kotchuprik","followers_url":"https://api.github.com/users/kotchuprik/followers","following_url":"https://api.github.com/users/kotchuprik/following{/other_user}","gists_url":"https://api.github.com/users/kotchuprik/gists{/gist_id}","starred_url":"https://api.github.com/users/kotchuprik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotchuprik/subscriptions","organizations_url":"https://api.github.com/users/kotchuprik/orgs","repos_url":"https://api.github.com/users/kotchuprik/repos","events_url":"https://api.github.com/users/kotchuprik/events{/privacy}","received_events_url":"https://api.github.com/users/kotchuprik/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T06:17:07Z","updated_at":"2018-11-05T06:17:07Z","author_association":"NONE","body":"@alexxsanchezm thanks, man! you did my life easier today."}}
{"actor":{"display_login":"kotchuprik"}}