{"action":"closed","number":11199,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/11199","id":95773657,"html_url":"https://github.com/facebook/react-native/pull/11199","diff_url":"https://github.com/facebook/react-native/pull/11199.diff","patch_url":"https://github.com/facebook/react-native/pull/11199.patch","issue_url":"https://api.github.com/repos/facebook/react-native/issues/11199","number":11199,"state":"closed","locked":false,"title":"[jest] Add missing mock for AppState","user":{"login":"cooperka","id":2047062,"avatar_url":"https://avatars.githubusercontent.com/u/2047062?v=3","gravatar_id":"","url":"https://api.github.com/users/cooperka","html_url":"https://github.com/cooperka","followers_url":"https://api.github.com/users/cooperka/followers","following_url":"https://api.github.com/users/cooperka/following{/other_user}","gists_url":"https://api.github.com/users/cooperka/gists{/gist_id}","starred_url":"https://api.github.com/users/cooperka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cooperka/subscriptions","organizations_url":"https://api.github.com/users/cooperka/orgs","repos_url":"https://api.github.com/users/cooperka/repos","events_url":"https://api.github.com/users/cooperka/events{/privacy}","received_events_url":"https://api.github.com/users/cooperka/received_events","type":"User","site_admin":false},"body":"**Description**\r\n\r\nIn the same vein as https://github.com/facebook/react-native/pull/11198, this adds a mock for the native module `AppState`.\r\n\r\n**Test plan**\r\n\r\nCreate a component that uses `AppState`, e.g.\r\n\r\n```jsx\r\nimport React, { Component } from 'react';\r\nimport { AppState } from 'react-native';\r\n\r\nclass TestComponent extends Component {\r\n  componentDidMount() {\r\n    AppState.addEventListener('change', this.stateChangeListener);\r\n  }\r\n}\r\n```","created_at":"2016-11-29T20:56:22Z","updated_at":"2016-11-29T22:44:05Z","closed_at":"2016-11-29T22:44:05Z","merged_at":null,"merge_commit_sha":"258cdc2226f16230361a4d5eb60847751d7b6df4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/react-native/pulls/11199/commits","review_comments_url":"https://api.github.com/repos/facebook/react-native/pulls/11199/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/11199/comments","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/c7ca2df267406eae76b9d062bbaa260aa074b278","head":{"label":"cooperka:patch-1","ref":"patch-1","sha":"c7ca2df267406eae76b9d062bbaa260aa074b278","user":{"login":"cooperka","id":2047062,"avatar_url":"https://avatars.githubusercontent.com/u/2047062?v=3","gravatar_id":"","url":"https://api.github.com/users/cooperka","html_url":"https://github.com/cooperka","followers_url":"https://api.github.com/users/cooperka/followers","following_url":"https://api.github.com/users/cooperka/following{/other_user}","gists_url":"https://api.github.com/users/cooperka/gists{/gist_id}","starred_url":"https://api.github.com/users/cooperka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cooperka/subscriptions","organizations_url":"https://api.github.com/users/cooperka/orgs","repos_url":"https://api.github.com/users/cooperka/repos","events_url":"https://api.github.com/users/cooperka/events{/privacy}","received_events_url":"https://api.github.com/users/cooperka/received_events","type":"User","site_admin":false},"repo":{"id":75120407,"name":"react-native","full_name":"cooperka/react-native","owner":{"login":"cooperka","id":2047062,"avatar_url":"https://avatars.githubusercontent.com/u/2047062?v=3","gravatar_id":"","url":"https://api.github.com/users/cooperka","html_url":"https://github.com/cooperka","followers_url":"https://api.github.com/users/cooperka/followers","following_url":"https://api.github.com/users/cooperka/following{/other_user}","gists_url":"https://api.github.com/users/cooperka/gists{/gist_id}","starred_url":"https://api.github.com/users/cooperka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cooperka/subscriptions","organizations_url":"https://api.github.com/users/cooperka/orgs","repos_url":"https://api.github.com/users/cooperka/repos","events_url":"https://api.github.com/users/cooperka/events{/privacy}","received_events_url":"https://api.github.com/users/cooperka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cooperka/react-native","description":"A framework for building native apps with React.","fork":true,"url":"https://api.github.com/repos/cooperka/react-native","forks_url":"https://api.github.com/repos/cooperka/react-native/forks","keys_url":"https://api.github.com/repos/cooperka/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cooperka/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cooperka/react-native/teams","hooks_url":"https://api.github.com/repos/cooperka/react-native/hooks","issue_events_url":"https://api.github.com/repos/cooperka/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/cooperka/react-native/events","assignees_url":"https://api.github.com/repos/cooperka/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/cooperka/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/cooperka/react-native/tags","blobs_url":"https://api.github.com/repos/cooperka/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cooperka/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cooperka/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/cooperka/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cooperka/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/cooperka/react-native/languages","stargazers_url":"https://api.github.com/repos/cooperka/react-native/stargazers","contributors_url":"https://api.github.com/repos/cooperka/react-native/contributors","subscribers_url":"https://api.github.com/repos/cooperka/react-native/subscribers","subscription_url":"https://api.github.com/repos/cooperka/react-native/subscription","commits_url":"https://api.github.com/repos/cooperka/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/cooperka/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/cooperka/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/cooperka/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/cooperka/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/cooperka/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cooperka/react-native/merges","archive_url":"https://api.github.com/repos/cooperka/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cooperka/react-native/downloads","issues_url":"https://api.github.com/repos/cooperka/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/cooperka/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/cooperka/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/cooperka/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cooperka/react-native/labels{/name}","releases_url":"https://api.github.com/repos/cooperka/react-native/releases{/id}","deployments_url":"https://api.github.com/repos/cooperka/react-native/deployments","created_at":"2016-11-29T20:45:19Z","updated_at":"2016-11-29T20:45:30Z","pushed_at":"2016-11-29T20:48:35Z","git_url":"git://github.com/cooperka/react-native.git","ssh_url":"git@github.com:cooperka/react-native.git","clone_url":"https://github.com/cooperka/react-native.git","svn_url":"https://github.com/cooperka/react-native","homepage":"http://facebook.github.io/react-native/","size":103207,"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":"b58c8ad91661ce424b89e2f534cf8eb6d5260d8c","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-29T22:31:16Z","pushed_at":"2016-11-29T22:43:41Z","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":163091,"stargazers_count":41001,"watchers_count":41001,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9300,"mirror_url":null,"open_issues_count":853,"forks":9300,"open_issues":853,"watchers":41001,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/11199"},"html":{"href":"https://github.com/facebook/react-native/pull/11199"},"issue":{"href":"https://api.github.com/repos/facebook/react-native/issues/11199"},"comments":{"href":"https://api.github.com/repos/facebook/react-native/issues/11199/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react-native/pulls/11199/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/11199/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react-native/statuses/c7ca2df267406eae76b9d062bbaa260aa074b278"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":6,"review_comments":0,"commits":1,"additions":3,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"facebook-github-bot"}}