{"action":"created","issue":{"url":"https://api.github.com/repos/CRAlpha/react-native-wkwebview/issues/54","repository_url":"https://api.github.com/repos/CRAlpha/react-native-wkwebview","labels_url":"https://api.github.com/repos/CRAlpha/react-native-wkwebview/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/CRAlpha/react-native-wkwebview/issues/54/comments","events_url":"https://api.github.com/repos/CRAlpha/react-native-wkwebview/issues/54/events","html_url":"https://github.com/CRAlpha/react-native-wkwebview/issues/54","id":217345679,"number":54,"title":"Using require('...') as source","user":{"login":"headlessme","id":4320942,"avatar_url":"https://avatars2.githubusercontent.com/u/4320942?v=3","gravatar_id":"","url":"https://api.github.com/users/headlessme","html_url":"https://github.com/headlessme","followers_url":"https://api.github.com/users/headlessme/followers","following_url":"https://api.github.com/users/headlessme/following{/other_user}","gists_url":"https://api.github.com/users/headlessme/gists{/gist_id}","starred_url":"https://api.github.com/users/headlessme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/headlessme/subscriptions","organizations_url":"https://api.github.com/users/headlessme/orgs","repos_url":"https://api.github.com/users/headlessme/repos","events_url":"https://api.github.com/users/headlessme/events{/privacy}","received_events_url":"https://api.github.com/users/headlessme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-27T19:11:43Z","updated_at":"2017-04-19T01:48:53Z","closed_at":null,"body":"I'm seeing the following error when using a require'd HTML resource as the source:\r\n\r\n```\r\nPossible Unhandled Promise Rejection (id: 0):\r\nIn this environment the sources for assign MUST be an object.This error is a performance optimization and not spec compliant.\r\n```\r\n\r\nLooks like it's due to this assign: \r\n\r\n```\r\n    var source = Object.assign({}, this.props.source || {} , { \r\n      sendCookies: this.props.sendCookies,\r\n      customUserAgent: this.props.customUserAgent\r\n    });\r\n```\r\n\r\nAt this point `this.props.source` is an integer from the packager, and the babel version of assign doesn't like that. "},"comment":{"url":"https://api.github.com/repos/CRAlpha/react-native-wkwebview/issues/comments/295038582","html_url":"https://github.com/CRAlpha/react-native-wkwebview/issues/54#issuecomment-295038582","issue_url":"https://api.github.com/repos/CRAlpha/react-native-wkwebview/issues/54","id":295038582,"user":{"login":"insraq","id":608221,"avatar_url":"https://avatars0.githubusercontent.com/u/608221?v=3","gravatar_id":"","url":"https://api.github.com/users/insraq","html_url":"https://github.com/insraq","followers_url":"https://api.github.com/users/insraq/followers","following_url":"https://api.github.com/users/insraq/following{/other_user}","gists_url":"https://api.github.com/users/insraq/gists{/gist_id}","starred_url":"https://api.github.com/users/insraq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insraq/subscriptions","organizations_url":"https://api.github.com/users/insraq/orgs","repos_url":"https://api.github.com/users/insraq/repos","events_url":"https://api.github.com/users/insraq/events{/privacy}","received_events_url":"https://api.github.com/users/insraq/received_events","type":"User","site_admin":false},"created_at":"2017-04-19T01:48:53Z","updated_at":"2017-04-19T01:48:53Z","body":"We never tested using `srouce={require('...')}`. I believe `source={{html: '<html>'}}` should work."}}
{"actor":{"display_login":"insraq"}}