{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/9499","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/9499/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/9499/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/9499/events","html_url":"https://github.com/facebook/react-native/issues/9499","id":172307984,"number":9499,"title":"importing 'requireNativeComponent' causes a crash","user":{"login":"CoderGLM","id":13973117,"avatar_url":"https://avatars.githubusercontent.com/u/13973117?v=3","gravatar_id":"","url":"https://api.github.com/users/CoderGLM","html_url":"https://github.com/CoderGLM","followers_url":"https://api.github.com/users/CoderGLM/followers","following_url":"https://api.github.com/users/CoderGLM/following{/other_user}","gists_url":"https://api.github.com/users/CoderGLM/gists{/gist_id}","starred_url":"https://api.github.com/users/CoderGLM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoderGLM/subscriptions","organizations_url":"https://api.github.com/users/CoderGLM/orgs","repos_url":"https://api.github.com/users/CoderGLM/repos","events_url":"https://api.github.com/users/CoderGLM/events{/privacy}","received_events_url":"https://api.github.com/users/CoderGLM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-21T06:48:58Z","updated_at":"2016-08-22T12:59:28Z","closed_at":null,"body":"RCTMapView.js: \r\n```\r\nimport { requireNativeComponent } from 'react-native';\r\n\r\nexport default requireNativeComponent('RCTMapView', null);\r\n```\r\n\r\nMapView.js: \r\n```\r\nimport React, { Component } from 'react';\r\nimport {\r\n  requireNativeComponent,\r\n} from 'react-natvie';\r\n\r\nimport RCTMapView from './RCTMapView';\r\n\r\nexport default class MapView extends Component {\r\n  render() {\r\n    return <RCTMapView {...this.props} />;\r\n  }\r\n}\r\n```\r\n\r\nUse MapView.js: \r\n```\r\n        <MapView\r\n          style={styles.map}\r\n          pitchEnabled={false}/>\r\n```\r\n\r\nHere is the crash: \r\n![simulator screen shot 2016 8 21 2 46 08](https://cloud.githubusercontent.com/assets/13973117/17835780/19ce5376-67ae-11e6-8ebe-6371cf4fef3f.png)\r\n\r\nAnd if I remove  importing requireNativeComponent in MapView.js, it works, why?\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/241404771","html_url":"https://github.com/facebook/react-native/issues/9499#issuecomment-241404771","issue_url":"https://api.github.com/repos/facebook/react-native/issues/9499","id":241404771,"user":{"login":"CoderGLM","id":13973117,"avatar_url":"https://avatars.githubusercontent.com/u/13973117?v=3","gravatar_id":"","url":"https://api.github.com/users/CoderGLM","html_url":"https://github.com/CoderGLM","followers_url":"https://api.github.com/users/CoderGLM/followers","following_url":"https://api.github.com/users/CoderGLM/following{/other_user}","gists_url":"https://api.github.com/users/CoderGLM/gists{/gist_id}","starred_url":"https://api.github.com/users/CoderGLM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoderGLM/subscriptions","organizations_url":"https://api.github.com/users/CoderGLM/orgs","repos_url":"https://api.github.com/users/CoderGLM/repos","events_url":"https://api.github.com/users/CoderGLM/events{/privacy}","received_events_url":"https://api.github.com/users/CoderGLM/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T12:59:27Z","updated_at":"2016-08-22T12:59:27Z","body":"GOD, Actually misspelled, Thanks a lot. @Cordazar "}}
{"actor":{"display_login":"CoderGLM"}}