{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/react-native/pulls/comments/89349950","pull_request_review_id":9895922,"id":89349950,"diff_hunk":"@@ -35,15 +35,26 @@ class ClipboardExample extends React.Component {\n     content: 'Content will appear here'\n   };\n \n-  _setClipboardContent = async () => {\n-    Clipboard.setString('Hello World');\n+  componentDidMount(){\n+    Clipboard.addListener('clipboardChanged', this._clipboardChanged.bind(this));\n+  }\n+\n+  componentWillUnmount(){\n+    Clipboard.removeListener('clipboardChanged', this._clipboardChanged);\n+  }\n+\n+  async _clipboardChanged(){\n     try {\n       var content = await Clipboard.getString();\n       this.setState({content});\n     } catch (e) {\n       this.setState({content:e.message});","path":"Examples/UIExplorer/js/ClipboardExample.js","position":19,"original_position":19,"commit_id":"fc044bbd50531a914e9ec6b7588786ff35b085bb","original_commit_id":"fc044bbd50531a914e9ec6b7588786ff35b085bb","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-11-23T16:19:27Z","updated_at":"2016-11-23T16:19:27Z","html_url":"https://github.com/facebook/react-native/pull/10777#discussion_r89349950","pull_request_url":"https://api.github.com/repos/facebook/react-native/pulls/10777","_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments/89349950"},"html":{"href":"https://github.com/facebook/react-native/pull/10777#discussion_r89349950"},"pull_request":{"href":"https://api.github.com/repos/facebook/react-native/pulls/10777"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/10777","id":92533324,"html_url":"https://github.com/facebook/react-native/pull/10777","diff_url":"https://github.com/facebook/react-native/pull/10777.diff","patch_url":"https://github.com/facebook/react-native/pull/10777.patch","issue_url":"https://api.github.com/repos/facebook/react-native/issues/10777","number":10777,"state":"open","locked":false,"title":"Clipboard change events.","user":{"login":"Froelund","id":2089088,"avatar_url":"https://avatars.githubusercontent.com/u/2089088?v=3","gravatar_id":"","url":"https://api.github.com/users/Froelund","html_url":"https://github.com/Froelund","followers_url":"https://api.github.com/users/Froelund/followers","following_url":"https://api.github.com/users/Froelund/following{/other_user}","gists_url":"https://api.github.com/users/Froelund/gists{/gist_id}","starred_url":"https://api.github.com/users/Froelund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Froelund/subscriptions","organizations_url":"https://api.github.com/users/Froelund/orgs","repos_url":"https://api.github.com/users/Froelund/repos","events_url":"https://api.github.com/users/Froelund/events{/privacy}","received_events_url":"https://api.github.com/users/Froelund/received_events","type":"User","site_admin":false},"body":"This Pull request adds clipboard change events to the existing Clipboard module.\r\n\r\nThe functionality is demonstrated in the `ClipboardExample.js`","created_at":"2016-11-07T07:07:35Z","updated_at":"2016-11-23T16:19:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad055f46c73423a9709725e47c53016d42de7ed9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/react-native/pulls/10777/commits","review_comments_url":"https://api.github.com/repos/facebook/react-native/pulls/10777/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/10777/comments","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/fc044bbd50531a914e9ec6b7588786ff35b085bb","head":{"label":"TeletronicsDotAe:master","ref":"master","sha":"fc044bbd50531a914e9ec6b7588786ff35b085bb","user":{"login":"TeletronicsDotAe","id":11438860,"avatar_url":"https://avatars.githubusercontent.com/u/11438860?v=3","gravatar_id":"","url":"https://api.github.com/users/TeletronicsDotAe","html_url":"https://github.com/TeletronicsDotAe","followers_url":"https://api.github.com/users/TeletronicsDotAe/followers","following_url":"https://api.github.com/users/TeletronicsDotAe/following{/other_user}","gists_url":"https://api.github.com/users/TeletronicsDotAe/gists{/gist_id}","starred_url":"https://api.github.com/users/TeletronicsDotAe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeletronicsDotAe/subscriptions","organizations_url":"https://api.github.com/users/TeletronicsDotAe/orgs","repos_url":"https://api.github.com/users/TeletronicsDotAe/repos","events_url":"https://api.github.com/users/TeletronicsDotAe/events{/privacy}","received_events_url":"https://api.github.com/users/TeletronicsDotAe/received_events","type":"Organization","site_admin":false},"repo":{"id":73043762,"name":"react-native","full_name":"TeletronicsDotAe/react-native","owner":{"login":"TeletronicsDotAe","id":11438860,"avatar_url":"https://avatars.githubusercontent.com/u/11438860?v=3","gravatar_id":"","url":"https://api.github.com/users/TeletronicsDotAe","html_url":"https://github.com/TeletronicsDotAe","followers_url":"https://api.github.com/users/TeletronicsDotAe/followers","following_url":"https://api.github.com/users/TeletronicsDotAe/following{/other_user}","gists_url":"https://api.github.com/users/TeletronicsDotAe/gists{/gist_id}","starred_url":"https://api.github.com/users/TeletronicsDotAe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeletronicsDotAe/subscriptions","organizations_url":"https://api.github.com/users/TeletronicsDotAe/orgs","repos_url":"https://api.github.com/users/TeletronicsDotAe/repos","events_url":"https://api.github.com/users/TeletronicsDotAe/events{/privacy}","received_events_url":"https://api.github.com/users/TeletronicsDotAe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeletronicsDotAe/react-native","description":"A framework for building native apps with React.","fork":true,"url":"https://api.github.com/repos/TeletronicsDotAe/react-native","forks_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/forks","keys_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/teams","hooks_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/hooks","issue_events_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/events","assignees_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/tags","blobs_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/languages","stargazers_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/stargazers","contributors_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/contributors","subscribers_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/subscribers","subscription_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/subscription","commits_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/merges","archive_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/downloads","issues_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/labels{/name}","releases_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/releases{/id}","deployments_url":"https://api.github.com/repos/TeletronicsDotAe/react-native/deployments","created_at":"2016-11-07T04:59:39Z","updated_at":"2016-11-07T04:59:49Z","pushed_at":"2016-11-10T01:53:28Z","git_url":"git://github.com/TeletronicsDotAe/react-native.git","ssh_url":"git@github.com:TeletronicsDotAe/react-native.git","clone_url":"https://github.com/TeletronicsDotAe/react-native.git","svn_url":"https://github.com/TeletronicsDotAe/react-native","homepage":"http://facebook.github.io/react-native/","size":95108,"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":"72369ee4d2203a888605e3382aeae1be7fff1c62","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-11-23T16:16:36Z","pushed_at":"2016-11-23T16:04:02Z","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":158790,"stargazers_count":40727,"watchers_count":40727,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9239,"mirror_url":null,"open_issues_count":859,"forks":9239,"open_issues":859,"watchers":40727,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/10777"},"html":{"href":"https://github.com/facebook/react-native/pull/10777"},"issue":{"href":"https://api.github.com/repos/facebook/react-native/issues/10777"},"comments":{"href":"https://api.github.com/repos/facebook/react-native/issues/10777/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react-native/pulls/10777/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/10777/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react-native/statuses/fc044bbd50531a914e9ec6b7588786ff35b085bb"}}}}
{"actor":{"display_login":"mkonicek"}}