{"action":"opened","issue":{"url":"https://api.github.com/repos/bgrieder/RNTSExplorer/issues/2","labels_url":"https://api.github.com/repos/bgrieder/RNTSExplorer/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bgrieder/RNTSExplorer/issues/2/comments","events_url":"https://api.github.com/repos/bgrieder/RNTSExplorer/issues/2/events","html_url":"https://github.com/bgrieder/RNTSExplorer/issues/2","id":116540512,"number":2,"title":"How to import","user":{"login":"mrpatiwi","id":7570744,"avatar_url":"https://avatars.githubusercontent.com/u/7570744?v=3","gravatar_id":"","url":"https://api.github.com/users/mrpatiwi","html_url":"https://github.com/mrpatiwi","followers_url":"https://api.github.com/users/mrpatiwi/followers","following_url":"https://api.github.com/users/mrpatiwi/following{/other_user}","gists_url":"https://api.github.com/users/mrpatiwi/gists{/gist_id}","starred_url":"https://api.github.com/users/mrpatiwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrpatiwi/subscriptions","organizations_url":"https://api.github.com/users/mrpatiwi/orgs","repos_url":"https://api.github.com/users/mrpatiwi/repos","events_url":"https://api.github.com/users/mrpatiwi/events{/privacy}","received_events_url":"https://api.github.com/users/mrpatiwi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-12T12:30:42Z","updated_at":"2015-11-12T12:30:42Z","closed_at":null,"body":"When I try:\r\n```typescript\r\n// .tsx\r\n/// <reference path=\"../typings/tsd.d.ts\"/>\r\n\r\n'use strict'\r\n\r\nimport React from 'react-native'\r\nconst {\r\n  Text,\r\n  View,\r\n  Component,\r\n} = React;\r\n```\r\n\r\nThe generated file looks like:\r\n```js\r\n// .js\r\n'use strict';\r\nvar react_native_1 = require('react-native');\r\nconst { Text, View, Component, } = react_native_1.default;\r\n```\r\n\r\nAnd produces a error because of `default` begin used.\r\n\r\nWhen I try the same but without `import`:\r\n```typescript\r\n// .tsx\r\nconst React = require(\"react-native\");\r\nconst {\r\n  Text,\r\n  View,\r\n  Component,\r\n} = React;\r\n```\r\n```js\r\n// .js\r\n'use strict';\r\nconst React = require(\"react-native\");\r\nconst { Text, View, Component, } = React;\r\n```\r\n\r\nIt's working but I lost typings and my IDE complains. \r\n\r\nIs the definition file `react-native.d.ts` correct? "}}