{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/react-native/pulls/comments/56208857","id":56208857,"diff_hunk":"@@ -411,4 +421,25 @@ public void clearCookies(com.facebook.react.bridge.Callback callback) {\n     return getReactApplicationContext()\n         .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class);\n   }\n+\n+  /**\n+   * Prefetch image to the fresco image disk cache\n+   */\n+  @ReactMethod\n+  public void prefetchImage(String url) {\n+    Uri uri = null;\n+    try {\n+      if (url != null && !url.isEmpty()) {\n+        uri = Uri.parse(url);\n+      }\n+    } catch (Exception e){\n+      //ignore malformed url","path":"ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java","position":51,"original_position":51,"commit_id":"754584ec3f1bccb4017a06d57be6d44d6526b128","original_commit_id":"754584ec3f1bccb4017a06d57be6d44d6526b128","user":{"login":"mkonicek","id":346214,"avatar_url":"https://avatars.githubusercontent.com/u/346214?v=3","gravatar_id":"","url":"https://api.github.com/users/mkonicek","html_url":"https://github.com/mkonicek","followers_url":"https://api.github.com/users/mkonicek/followers","following_url":"https://api.github.com/users/mkonicek/following{/other_user}","gists_url":"https://api.github.com/users/mkonicek/gists{/gist_id}","starred_url":"https://api.github.com/users/mkonicek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkonicek/subscriptions","organizations_url":"https://api.github.com/users/mkonicek/orgs","repos_url":"https://api.github.com/users/mkonicek/repos","events_url":"https://api.github.com/users/mkonicek/events{/privacy}","received_events_url":"https://api.github.com/users/mkonicek/received_events","type":"User","site_admin":false},"body":"nit: space after //","created_at":"2016-03-15T17:49:32Z","updated_at":"2016-03-15T17:49:32Z","html_url":"https://github.com/facebook/react-native/pull/4420#discussion_r56208857","pull_request_url":"https://api.github.com/repos/facebook/react-native/pulls/4420","_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments/56208857"},"html":{"href":"https://github.com/facebook/react-native/pull/4420#discussion_r56208857"},"pull_request":{"href":"https://api.github.com/repos/facebook/react-native/pulls/4420"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/4420","id":52087874,"html_url":"https://github.com/facebook/react-native/pull/4420","diff_url":"https://github.com/facebook/react-native/pull/4420.diff","patch_url":"https://github.com/facebook/react-native/pull/4420.patch","issue_url":"https://api.github.com/repos/facebook/react-native/issues/4420","number":4420,"state":"open","locked":false,"title":"Allow prefetch remote image","user":{"login":"sospartan","id":115201,"avatar_url":"https://avatars.githubusercontent.com/u/115201?v=3","gravatar_id":"","url":"https://api.github.com/users/sospartan","html_url":"https://github.com/sospartan","followers_url":"https://api.github.com/users/sospartan/followers","following_url":"https://api.github.com/users/sospartan/following{/other_user}","gists_url":"https://api.github.com/users/sospartan/gists{/gist_id}","starred_url":"https://api.github.com/users/sospartan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sospartan/subscriptions","organizations_url":"https://api.github.com/users/sospartan/orgs","repos_url":"https://api.github.com/users/sospartan/repos","events_url":"https://api.github.com/users/sospartan/events{/privacy}","received_events_url":"https://api.github.com/users/sospartan/received_events","type":"User","site_admin":false},"body":"Allow prefetch remote image to disk cache for later use .  \r\nThis will be useful for prepare important image before render (e.g. background image )\r\n ","created_at":"2015-11-30T05:56:56Z","updated_at":"2016-03-15T17:49:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8613e0671c978fafb49b781202e4037d6f864712","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/react-native/pulls/4420/commits","review_comments_url":"https://api.github.com/repos/facebook/react-native/pulls/4420/comments","review_comment_url":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/4420/comments","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/754584ec3f1bccb4017a06d57be6d44d6526b128","head":{"label":"sospartan:networking-resource","ref":"networking-resource","sha":"754584ec3f1bccb4017a06d57be6d44d6526b128","user":{"login":"sospartan","id":115201,"avatar_url":"https://avatars.githubusercontent.com/u/115201?v=3","gravatar_id":"","url":"https://api.github.com/users/sospartan","html_url":"https://github.com/sospartan","followers_url":"https://api.github.com/users/sospartan/followers","following_url":"https://api.github.com/users/sospartan/following{/other_user}","gists_url":"https://api.github.com/users/sospartan/gists{/gist_id}","starred_url":"https://api.github.com/users/sospartan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sospartan/subscriptions","organizations_url":"https://api.github.com/users/sospartan/orgs","repos_url":"https://api.github.com/users/sospartan/repos","events_url":"https://api.github.com/users/sospartan/events{/privacy}","received_events_url":"https://api.github.com/users/sospartan/received_events","type":"User","site_admin":false},"repo":{"id":43044048,"name":"react-native","full_name":"sospartan/react-native","owner":{"login":"sospartan","id":115201,"avatar_url":"https://avatars.githubusercontent.com/u/115201?v=3","gravatar_id":"","url":"https://api.github.com/users/sospartan","html_url":"https://github.com/sospartan","followers_url":"https://api.github.com/users/sospartan/followers","following_url":"https://api.github.com/users/sospartan/following{/other_user}","gists_url":"https://api.github.com/users/sospartan/gists{/gist_id}","starred_url":"https://api.github.com/users/sospartan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sospartan/subscriptions","organizations_url":"https://api.github.com/users/sospartan/orgs","repos_url":"https://api.github.com/users/sospartan/repos","events_url":"https://api.github.com/users/sospartan/events{/privacy}","received_events_url":"https://api.github.com/users/sospartan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sospartan/react-native","description":"A framework for building native apps with React.","fork":true,"url":"https://api.github.com/repos/sospartan/react-native","forks_url":"https://api.github.com/repos/sospartan/react-native/forks","keys_url":"https://api.github.com/repos/sospartan/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sospartan/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sospartan/react-native/teams","hooks_url":"https://api.github.com/repos/sospartan/react-native/hooks","issue_events_url":"https://api.github.com/repos/sospartan/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/sospartan/react-native/events","assignees_url":"https://api.github.com/repos/sospartan/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/sospartan/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/sospartan/react-native/tags","blobs_url":"https://api.github.com/repos/sospartan/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sospartan/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sospartan/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/sospartan/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sospartan/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/sospartan/react-native/languages","stargazers_url":"https://api.github.com/repos/sospartan/react-native/stargazers","contributors_url":"https://api.github.com/repos/sospartan/react-native/contributors","subscribers_url":"https://api.github.com/repos/sospartan/react-native/subscribers","subscription_url":"https://api.github.com/repos/sospartan/react-native/subscription","commits_url":"https://api.github.com/repos/sospartan/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/sospartan/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/sospartan/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/sospartan/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/sospartan/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/sospartan/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sospartan/react-native/merges","archive_url":"https://api.github.com/repos/sospartan/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sospartan/react-native/downloads","issues_url":"https://api.github.com/repos/sospartan/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/sospartan/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/sospartan/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/sospartan/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sospartan/react-native/labels{/name}","releases_url":"https://api.github.com/repos/sospartan/react-native/releases{/id}","deployments_url":"https://api.github.com/repos/sospartan/react-native/deployments","created_at":"2015-09-24T04:07:00Z","updated_at":"2015-09-24T04:07:05Z","pushed_at":"2016-01-07T01:59:28Z","git_url":"git://github.com/sospartan/react-native.git","ssh_url":"git@github.com:sospartan/react-native.git","clone_url":"https://github.com/sospartan/react-native.git","svn_url":"https://github.com/sospartan/react-native","homepage":"http://facebook.github.io/react-native/","size":33734,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"b40631b3ccd60daba390c5f6e646ea9ad8ac79ab","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":29028775,"name":"react-native","full_name":"facebook/react-native","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/react-native","description":"A framework for building native apps with React.","fork":false,"url":"https://api.github.com/repos/facebook/react-native","forks_url":"https://api.github.com/repos/facebook/react-native/forks","keys_url":"https://api.github.com/repos/facebook/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/react-native/teams","hooks_url":"https://api.github.com/repos/facebook/react-native/hooks","issue_events_url":"https://api.github.com/repos/facebook/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/react-native/events","assignees_url":"https://api.github.com/repos/facebook/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/react-native/tags","blobs_url":"https://api.github.com/repos/facebook/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/react-native/languages","stargazers_url":"https://api.github.com/repos/facebook/react-native/stargazers","contributors_url":"https://api.github.com/repos/facebook/react-native/contributors","subscribers_url":"https://api.github.com/repos/facebook/react-native/subscribers","subscription_url":"https://api.github.com/repos/facebook/react-native/subscription","commits_url":"https://api.github.com/repos/facebook/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/react-native/merges","archive_url":"https://api.github.com/repos/facebook/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/react-native/downloads","issues_url":"https://api.github.com/repos/facebook/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/react-native/labels{/name}","releases_url":"https://api.github.com/repos/facebook/react-native/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/react-native/deployments","created_at":"2015-01-09T18:10:16Z","updated_at":"2016-03-15T17:35:09Z","pushed_at":"2016-03-15T17:26:28Z","git_url":"git://github.com/facebook/react-native.git","ssh_url":"git@github.com:facebook/react-native.git","clone_url":"https://github.com/facebook/react-native.git","svn_url":"https://github.com/facebook/react-native","homepage":"http://facebook.github.io/react-native/","size":82817,"stargazers_count":28714,"watchers_count":28714,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5443,"mirror_url":null,"open_issues_count":1144,"forks":5443,"open_issues":1144,"watchers":28714,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/4420"},"html":{"href":"https://github.com/facebook/react-native/pull/4420"},"issue":{"href":"https://api.github.com/repos/facebook/react-native/issues/4420"},"comments":{"href":"https://api.github.com/repos/facebook/react-native/issues/4420/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react-native/pulls/4420/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/react-native/pulls/4420/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react-native/statuses/754584ec3f1bccb4017a06d57be6d44d6526b128"}}}}