{"action":"opened","number":84,"pull_request":{"url":"https://api.github.com/repos/necolas/react-native-web/pulls/84","id":62055021,"html_url":"https://github.com/necolas/react-native-web/pull/84","diff_url":"https://github.com/necolas/react-native-web/pull/84.diff","patch_url":"https://github.com/necolas/react-native-web/pull/84.patch","issue_url":"https://api.github.com/repos/necolas/react-native-web/issues/84","number":84,"state":"open","locked":false,"title":"Added support for directly requiring image assets (rebase, +docs & tests)","user":{"login":"IjzerenHein","id":6184593,"avatar_url":"https://avatars.githubusercontent.com/u/6184593?v=3","gravatar_id":"","url":"https://api.github.com/users/IjzerenHein","html_url":"https://github.com/IjzerenHein","followers_url":"https://api.github.com/users/IjzerenHein/followers","following_url":"https://api.github.com/users/IjzerenHein/following{/other_user}","gists_url":"https://api.github.com/users/IjzerenHein/gists{/gist_id}","starred_url":"https://api.github.com/users/IjzerenHein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IjzerenHein/subscriptions","organizations_url":"https://api.github.com/users/IjzerenHein/orgs","repos_url":"https://api.github.com/users/IjzerenHein/repos","events_url":"https://api.github.com/users/IjzerenHein/events{/privacy}","received_events_url":"https://api.github.com/users/IjzerenHein/received_events","type":"User","site_admin":false},"body":"Native-script allows for directly requiring image assets without the need of wrapping it in an uri object{uri: 'someasset'}. This commit adds this feature <Image source={require('someasset.png')} /> as well as adds strong typing for uri-based sources:\r\n\r\nconst ImageSourcePropType = PropTypes.oneOfType([\r\n  PropTypes.shape({\r\n    uri: PropTypes.string.isRequired\r\n  }),\r\n  PropTypes.string // Opaque type returned by require('./image.jpg')\r\n])\r\nfinal result, these both work:\r\n\r\n<Image source={require('../assets/myasset.png')} />\r\n<Image source={{uri: require('../assets/myasset.png')}} />","created_at":"2016-03-08T10:57:26Z","updated_at":"2016-03-08T10:57:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/necolas/react-native-web/pulls/84/commits","review_comments_url":"https://api.github.com/repos/necolas/react-native-web/pulls/84/comments","review_comment_url":"https://api.github.com/repos/necolas/react-native-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/necolas/react-native-web/issues/84/comments","statuses_url":"https://api.github.com/repos/necolas/react-native-web/statuses/abf05f01e3ffb6fb6076545b617e996a72ca9ce9","head":{"label":"IjzerenHein:feature-image-source3","ref":"feature-image-source3","sha":"abf05f01e3ffb6fb6076545b617e996a72ca9ce9","user":{"login":"IjzerenHein","id":6184593,"avatar_url":"https://avatars.githubusercontent.com/u/6184593?v=3","gravatar_id":"","url":"https://api.github.com/users/IjzerenHein","html_url":"https://github.com/IjzerenHein","followers_url":"https://api.github.com/users/IjzerenHein/followers","following_url":"https://api.github.com/users/IjzerenHein/following{/other_user}","gists_url":"https://api.github.com/users/IjzerenHein/gists{/gist_id}","starred_url":"https://api.github.com/users/IjzerenHein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IjzerenHein/subscriptions","organizations_url":"https://api.github.com/users/IjzerenHein/orgs","repos_url":"https://api.github.com/users/IjzerenHein/repos","events_url":"https://api.github.com/users/IjzerenHein/events{/privacy}","received_events_url":"https://api.github.com/users/IjzerenHein/received_events","type":"User","site_admin":false},"repo":{"id":53077190,"name":"react-native-web","full_name":"IjzerenHein/react-native-web","owner":{"login":"IjzerenHein","id":6184593,"avatar_url":"https://avatars.githubusercontent.com/u/6184593?v=3","gravatar_id":"","url":"https://api.github.com/users/IjzerenHein","html_url":"https://github.com/IjzerenHein","followers_url":"https://api.github.com/users/IjzerenHein/followers","following_url":"https://api.github.com/users/IjzerenHein/following{/other_user}","gists_url":"https://api.github.com/users/IjzerenHein/gists{/gist_id}","starred_url":"https://api.github.com/users/IjzerenHein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IjzerenHein/subscriptions","organizations_url":"https://api.github.com/users/IjzerenHein/orgs","repos_url":"https://api.github.com/users/IjzerenHein/repos","events_url":"https://api.github.com/users/IjzerenHein/events{/privacy}","received_events_url":"https://api.github.com/users/IjzerenHein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IjzerenHein/react-native-web","description":"React Native for Web: A framework for building Native Web Apps","fork":true,"url":"https://api.github.com/repos/IjzerenHein/react-native-web","forks_url":"https://api.github.com/repos/IjzerenHein/react-native-web/forks","keys_url":"https://api.github.com/repos/IjzerenHein/react-native-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IjzerenHein/react-native-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IjzerenHein/react-native-web/teams","hooks_url":"https://api.github.com/repos/IjzerenHein/react-native-web/hooks","issue_events_url":"https://api.github.com/repos/IjzerenHein/react-native-web/issues/events{/number}","events_url":"https://api.github.com/repos/IjzerenHein/react-native-web/events","assignees_url":"https://api.github.com/repos/IjzerenHein/react-native-web/assignees{/user}","branches_url":"https://api.github.com/repos/IjzerenHein/react-native-web/branches{/branch}","tags_url":"https://api.github.com/repos/IjzerenHein/react-native-web/tags","blobs_url":"https://api.github.com/repos/IjzerenHein/react-native-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IjzerenHein/react-native-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IjzerenHein/react-native-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/IjzerenHein/react-native-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IjzerenHein/react-native-web/statuses/{sha}","languages_url":"https://api.github.com/repos/IjzerenHein/react-native-web/languages","stargazers_url":"https://api.github.com/repos/IjzerenHein/react-native-web/stargazers","contributors_url":"https://api.github.com/repos/IjzerenHein/react-native-web/contributors","subscribers_url":"https://api.github.com/repos/IjzerenHein/react-native-web/subscribers","subscription_url":"https://api.github.com/repos/IjzerenHein/react-native-web/subscription","commits_url":"https://api.github.com/repos/IjzerenHein/react-native-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/IjzerenHein/react-native-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/IjzerenHein/react-native-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/IjzerenHein/react-native-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/IjzerenHein/react-native-web/contents/{+path}","compare_url":"https://api.github.com/repos/IjzerenHein/react-native-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IjzerenHein/react-native-web/merges","archive_url":"https://api.github.com/repos/IjzerenHein/react-native-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IjzerenHein/react-native-web/downloads","issues_url":"https://api.github.com/repos/IjzerenHein/react-native-web/issues{/number}","pulls_url":"https://api.github.com/repos/IjzerenHein/react-native-web/pulls{/number}","milestones_url":"https://api.github.com/repos/IjzerenHein/react-native-web/milestones{/number}","notifications_url":"https://api.github.com/repos/IjzerenHein/react-native-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IjzerenHein/react-native-web/labels{/name}","releases_url":"https://api.github.com/repos/IjzerenHein/react-native-web/releases{/id}","deployments_url":"https://api.github.com/repos/IjzerenHein/react-native-web/deployments","created_at":"2016-03-03T19:29:30Z","updated_at":"2016-03-03T19:29:31Z","pushed_at":"2016-03-08T10:55:44Z","git_url":"git://github.com/IjzerenHein/react-native-web.git","ssh_url":"git@github.com:IjzerenHein/react-native-web.git","clone_url":"https://github.com/IjzerenHein/react-native-web.git","svn_url":"https://github.com/IjzerenHein/react-native-web","homepage":"","size":829,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"necolas:master","ref":"master","sha":"3eced7e84244dbc1dcc38f28e9feb483aea03380","user":{"login":"necolas","id":239676,"avatar_url":"https://avatars.githubusercontent.com/u/239676?v=3","gravatar_id":"","url":"https://api.github.com/users/necolas","html_url":"https://github.com/necolas","followers_url":"https://api.github.com/users/necolas/followers","following_url":"https://api.github.com/users/necolas/following{/other_user}","gists_url":"https://api.github.com/users/necolas/gists{/gist_id}","starred_url":"https://api.github.com/users/necolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/necolas/subscriptions","organizations_url":"https://api.github.com/users/necolas/orgs","repos_url":"https://api.github.com/users/necolas/repos","events_url":"https://api.github.com/users/necolas/events{/privacy}","received_events_url":"https://api.github.com/users/necolas/received_events","type":"User","site_admin":false},"repo":{"id":37153337,"name":"react-native-web","full_name":"necolas/react-native-web","owner":{"login":"necolas","id":239676,"avatar_url":"https://avatars.githubusercontent.com/u/239676?v=3","gravatar_id":"","url":"https://api.github.com/users/necolas","html_url":"https://github.com/necolas","followers_url":"https://api.github.com/users/necolas/followers","following_url":"https://api.github.com/users/necolas/following{/other_user}","gists_url":"https://api.github.com/users/necolas/gists{/gist_id}","starred_url":"https://api.github.com/users/necolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/necolas/subscriptions","organizations_url":"https://api.github.com/users/necolas/orgs","repos_url":"https://api.github.com/users/necolas/repos","events_url":"https://api.github.com/users/necolas/events{/privacy}","received_events_url":"https://api.github.com/users/necolas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/necolas/react-native-web","description":"React Native for Web: A framework for building Native Web Apps","fork":false,"url":"https://api.github.com/repos/necolas/react-native-web","forks_url":"https://api.github.com/repos/necolas/react-native-web/forks","keys_url":"https://api.github.com/repos/necolas/react-native-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/necolas/react-native-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/necolas/react-native-web/teams","hooks_url":"https://api.github.com/repos/necolas/react-native-web/hooks","issue_events_url":"https://api.github.com/repos/necolas/react-native-web/issues/events{/number}","events_url":"https://api.github.com/repos/necolas/react-native-web/events","assignees_url":"https://api.github.com/repos/necolas/react-native-web/assignees{/user}","branches_url":"https://api.github.com/repos/necolas/react-native-web/branches{/branch}","tags_url":"https://api.github.com/repos/necolas/react-native-web/tags","blobs_url":"https://api.github.com/repos/necolas/react-native-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/necolas/react-native-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/necolas/react-native-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/necolas/react-native-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/necolas/react-native-web/statuses/{sha}","languages_url":"https://api.github.com/repos/necolas/react-native-web/languages","stargazers_url":"https://api.github.com/repos/necolas/react-native-web/stargazers","contributors_url":"https://api.github.com/repos/necolas/react-native-web/contributors","subscribers_url":"https://api.github.com/repos/necolas/react-native-web/subscribers","subscription_url":"https://api.github.com/repos/necolas/react-native-web/subscription","commits_url":"https://api.github.com/repos/necolas/react-native-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/necolas/react-native-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/necolas/react-native-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/necolas/react-native-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/necolas/react-native-web/contents/{+path}","compare_url":"https://api.github.com/repos/necolas/react-native-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/necolas/react-native-web/merges","archive_url":"https://api.github.com/repos/necolas/react-native-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/necolas/react-native-web/downloads","issues_url":"https://api.github.com/repos/necolas/react-native-web/issues{/number}","pulls_url":"https://api.github.com/repos/necolas/react-native-web/pulls{/number}","milestones_url":"https://api.github.com/repos/necolas/react-native-web/milestones{/number}","notifications_url":"https://api.github.com/repos/necolas/react-native-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/necolas/react-native-web/labels{/name}","releases_url":"https://api.github.com/repos/necolas/react-native-web/releases{/id}","deployments_url":"https://api.github.com/repos/necolas/react-native-web/deployments","created_at":"2015-06-09T19:25:38Z","updated_at":"2016-03-08T10:45:46Z","pushed_at":"2016-03-08T08:52:49Z","git_url":"git://github.com/necolas/react-native-web.git","ssh_url":"git@github.com:necolas/react-native-web.git","clone_url":"https://github.com/necolas/react-native-web.git","svn_url":"https://github.com/necolas/react-native-web","homepage":"","size":842,"stargazers_count":1050,"watchers_count":1050,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":53,"mirror_url":null,"open_issues_count":29,"forks":53,"open_issues":29,"watchers":1050,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/necolas/react-native-web/pulls/84"},"html":{"href":"https://github.com/necolas/react-native-web/pull/84"},"issue":{"href":"https://api.github.com/repos/necolas/react-native-web/issues/84"},"comments":{"href":"https://api.github.com/repos/necolas/react-native-web/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/necolas/react-native-web/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/necolas/react-native-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/necolas/react-native-web/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/necolas/react-native-web/statuses/abf05f01e3ffb6fb6076545b617e996a72ca9ce9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":58,"deletions":12,"changed_files":4}}