{"action":"created","issue":{"url":"https://api.github.com/repos/lelandrichardson/react-native-maps/issues/43","repository_url":"https://api.github.com/repos/lelandrichardson/react-native-maps","labels_url":"https://api.github.com/repos/lelandrichardson/react-native-maps/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/lelandrichardson/react-native-maps/issues/43/comments","events_url":"https://api.github.com/repos/lelandrichardson/react-native-maps/issues/43/events","html_url":"https://github.com/lelandrichardson/react-native-maps/issues/43","id":128604676,"number":43,"title":"Initial Postion bases on geolocation","user":{"login":"shieer","id":1696788,"avatar_url":"https://avatars.githubusercontent.com/u/1696788?v=3","gravatar_id":"","url":"https://api.github.com/users/shieer","html_url":"https://github.com/shieer","followers_url":"https://api.github.com/users/shieer/followers","following_url":"https://api.github.com/users/shieer/following{/other_user}","gists_url":"https://api.github.com/users/shieer/gists{/gist_id}","starred_url":"https://api.github.com/users/shieer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shieer/subscriptions","organizations_url":"https://api.github.com/users/shieer/orgs","repos_url":"https://api.github.com/users/shieer/repos","events_url":"https://api.github.com/users/shieer/events{/privacy}","received_events_url":"https://api.github.com/users/shieer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lelandrichardson/react-native-maps/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/lelandrichardson/react-native-maps/labels/LMR:%20Need%20To%20Duplicate","name":"LMR: Need To Duplicate","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-25T18:24:52Z","updated_at":"2016-02-05T05:51:29Z","closed_at":null,"body":"Hi, Everyone, \r\nI'm not sure if I should write this question on here.\r\n\r\nOn my app, I did this on render:  \r\n```\r\n<MapView \r\n          style = {styles.mapView}\r\n          initialRegion={this.state.currentRegion}\r\n          showsUserLocation = {true}\r\n          ))}\r\n```\r\n\r\nand I have this to get user's current position:\r\n\r\n```\r\ncomponentDidMount: function() {\r\n    navigator.geolocation.getCurrentPosition(\r\n      (position) => {\r\n       console.log(position);\r\n        this.setState({currentRegion: {\r\n          latitude: position.coords.latitude,\r\n          longitude: position.coords.longitude,\r\n          latitudeDelta: LATITUDE_DELTA,\r\n          longitudeDelta: LONGITUDE_DELTA,\r\n        }});\r\n      },\r\n      (error) => alert(error.message),\r\n      {enableHighAccuracy: true, timeout: 20000, maximumAge: 1000}\r\n    );\r\n    this.watchID = navigator.geolocation.watchPosition((position) => {\r\n       console.log(position);\r\n      this.setState({currentRegion: {\r\n          latitude: position.coords.latitude,\r\n          longitude: position.coords.longitude,\r\n          latitudeDelta: LATITUDE_DELTA,\r\n          longitudeDelta: LONGITUDE_DELTA,\r\n        }});\r\n\r\n    })\r\n```\r\n\r\nBut with this, It's didn't auto move to current region on Android, but on iOS it'll move to current region when open that page. \r\n\r\nThanks.\r\n  "},"comment":{"url":"https://api.github.com/repos/lelandrichardson/react-native-maps/issues/comments/180209218","html_url":"https://github.com/lelandrichardson/react-native-maps/issues/43#issuecomment-180209218","issue_url":"https://api.github.com/repos/lelandrichardson/react-native-maps/issues/43","id":180209218,"user":{"login":"christopherdro","id":3741055,"avatar_url":"https://avatars.githubusercontent.com/u/3741055?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherdro","html_url":"https://github.com/christopherdro","followers_url":"https://api.github.com/users/christopherdro/followers","following_url":"https://api.github.com/users/christopherdro/following{/other_user}","gists_url":"https://api.github.com/users/christopherdro/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherdro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherdro/subscriptions","organizations_url":"https://api.github.com/users/christopherdro/orgs","repos_url":"https://api.github.com/users/christopherdro/repos","events_url":"https://api.github.com/users/christopherdro/events{/privacy}","received_events_url":"https://api.github.com/users/christopherdro/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T05:51:29Z","updated_at":"2016-02-05T05:51:29Z","body":"@shieer Are you receiving coordinates at all?\r\nAlso, have you added `<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\r\n` to `AndroidManifest.xml` already?"}}