{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/horizon/issues/477","repository_url":"https://api.github.com/repos/rethinkdb/horizon","labels_url":"https://api.github.com/repos/rethinkdb/horizon/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/horizon/issues/477/comments","events_url":"https://api.github.com/repos/rethinkdb/horizon/issues/477/events","html_url":"https://github.com/rethinkdb/horizon/issues/477","id":156114854,"number":477,"title":"React native Horizon client issue - fetch import","user":{"login":"arthurvi","id":3864426,"avatar_url":"https://avatars.githubusercontent.com/u/3864426?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurvi","html_url":"https://github.com/arthurvi","followers_url":"https://api.github.com/users/arthurvi/followers","following_url":"https://api.github.com/users/arthurvi/following{/other_user}","gists_url":"https://api.github.com/users/arthurvi/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurvi/subscriptions","organizations_url":"https://api.github.com/users/arthurvi/orgs","repos_url":"https://api.github.com/users/arthurvi/repos","events_url":"https://api.github.com/users/arthurvi/events{/privacy}","received_events_url":"https://api.github.com/users/arthurvi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/horizon/labels/client","name":"client","color":"00d2a5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rethinkdb/horizon/milestones/6","html_url":"https://github.com/rethinkdb/horizon/milestones/Release%201.x.x","labels_url":"https://api.github.com/repos/rethinkdb/horizon/milestones/6/labels","id":1761314,"number":6,"title":"Release 1.x.x","description":"Release after 1.0","creator":{"login":"deontologician","id":1366,"avatar_url":"https://avatars.githubusercontent.com/u/1366?v=3","gravatar_id":"","url":"https://api.github.com/users/deontologician","html_url":"https://github.com/deontologician","followers_url":"https://api.github.com/users/deontologician/followers","following_url":"https://api.github.com/users/deontologician/following{/other_user}","gists_url":"https://api.github.com/users/deontologician/gists{/gist_id}","starred_url":"https://api.github.com/users/deontologician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deontologician/subscriptions","organizations_url":"https://api.github.com/users/deontologician/orgs","repos_url":"https://api.github.com/users/deontologician/repos","events_url":"https://api.github.com/users/deontologician/events{/privacy}","received_events_url":"https://api.github.com/users/deontologician/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":43,"state":"open","created_at":"2016-05-12T00:05:51Z","updated_at":"2016-05-27T21:51:23Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-05-21T18:17:31Z","updated_at":"2016-06-01T18:07:16Z","closed_at":null,"body":"Client version: 1.0.2\r\n\r\nWhen using the horizon client in React Native by calling `import Horizon from '@horizon/client';` you get the following error: `Unable to resolve module imports?this=>global!exports?global.fetch!isomorphic-fetch from ....`\r\n\r\nThe problem is this line: https://github.com/rethinkdb/horizon/blob/next/client/src/util/fetch.js#L6. I think it is a way to shim modules with webpack. I'm not entirely sure how to fix it? React Native had its own implementation of global.fetch by default, so we should use that instead of a module. Any ideas?\r\n\r\n![simulator screen shot 21 mei 2016 20 08 57](https://cloud.githubusercontent.com/assets/3864426/15450048/703b9432-1f90-11e6-9cf0-aca0d097a6f2.png)\r\n"},"comment":{"url":"https://api.github.com/repos/rethinkdb/horizon/issues/comments/223076969","html_url":"https://github.com/rethinkdb/horizon/issues/477#issuecomment-223076969","issue_url":"https://api.github.com/repos/rethinkdb/horizon/issues/477","id":223076969,"user":{"login":"arthurvi","id":3864426,"avatar_url":"https://avatars.githubusercontent.com/u/3864426?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurvi","html_url":"https://github.com/arthurvi","followers_url":"https://api.github.com/users/arthurvi/followers","following_url":"https://api.github.com/users/arthurvi/following{/other_user}","gists_url":"https://api.github.com/users/arthurvi/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurvi/subscriptions","organizations_url":"https://api.github.com/users/arthurvi/orgs","repos_url":"https://api.github.com/users/arthurvi/repos","events_url":"https://api.github.com/users/arthurvi/events{/privacy}","received_events_url":"https://api.github.com/users/arthurvi/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T18:07:16Z","updated_at":"2016-06-01T18:07:16Z","body":"@rt2zz Bummer, haven't tested it. \r\nYes it is: [Webpack - shimming modules](https://github.com/webpack/docs/wiki/shimming-modules)\r\nI have never used it, but you can influence the way dependencies are imported and exported."}}
{"actor":{"display_login":"arthurvi"}}