{"action":"opened","issue":{"url":"https://api.github.com/repos/xiaobuu/react-native-amap-location/issues/16","repository_url":"https://api.github.com/repos/xiaobuu/react-native-amap-location","labels_url":"https://api.github.com/repos/xiaobuu/react-native-amap-location/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/xiaobuu/react-native-amap-location/issues/16/comments","events_url":"https://api.github.com/repos/xiaobuu/react-native-amap-location/issues/16/events","html_url":"https://github.com/xiaobuu/react-native-amap-location/issues/16","id":214291374,"number":16,"title":"我想问一下控制台可以打印位置信息，但是没有显示地图，react-native-amap-location是不能显示地图只能获取位置信息吗？还是我哪里写的不对？","user":{"login":"zhulichao","id":18158633,"avatar_url":"https://avatars1.githubusercontent.com/u/18158633?v=3","gravatar_id":"","url":"https://api.github.com/users/zhulichao","html_url":"https://github.com/zhulichao","followers_url":"https://api.github.com/users/zhulichao/followers","following_url":"https://api.github.com/users/zhulichao/following{/other_user}","gists_url":"https://api.github.com/users/zhulichao/gists{/gist_id}","starred_url":"https://api.github.com/users/zhulichao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhulichao/subscriptions","organizations_url":"https://api.github.com/users/zhulichao/orgs","repos_url":"https://api.github.com/users/zhulichao/repos","events_url":"https://api.github.com/users/zhulichao/events{/privacy}","received_events_url":"https://api.github.com/users/zhulichao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-15T06:01:31Z","updated_at":"2017-03-15T06:01:31Z","closed_at":null,"body":"```\r\nimport React, { Component } from 'react';\r\nimport { View, Text, TouchableHighlight, StyleSheet, InteractionManager } from 'react-native';\r\nimport AMapLocation from 'react-native-amap-location';\r\n\r\nclass Amap extends Component {\r\n  componentDidMount() {\r\n    this.listener = AMapLocation.addEventListener((data) => console.log('data', data));\r\n\r\n    AMapLocation.startLocation({\r\n      accuracy: 'HighAccuracy',\r\n      killProcess: true,\r\n      needDetail: true,\r\n    });\r\n  }\r\n  componentWillUnmount() {\r\n    AMapLocation.stopLocation();\r\n    this.listener.remove();\r\n  }\r\n  render() {\r\n    return (\r\n      <View style={{flexDirection: 'row', alignItems: 'center'}}></View>\r\n    );\r\n  }\r\n}\r\n\r\nexport default Amap;\r\n```"}}
{"actor":{"display_login":"zhulichao"}}