{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/15106","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/15106/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/15106/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/15106/events","html_url":"https://github.com/facebook/react-native/issues/15106","id":244078128,"number":15106,"title":"Back button does not shut down application ","user":{"login":"croraf","id":19698636,"avatar_url":"https://avatars3.githubusercontent.com/u/19698636?v=4","gravatar_id":"","url":"https://api.github.com/users/croraf","html_url":"https://github.com/croraf","followers_url":"https://api.github.com/users/croraf/followers","following_url":"https://api.github.com/users/croraf/following{/other_user}","gists_url":"https://api.github.com/users/croraf/gists{/gist_id}","starred_url":"https://api.github.com/users/croraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/croraf/subscriptions","organizations_url":"https://api.github.com/users/croraf/orgs","repos_url":"https://api.github.com/users/croraf/repos","events_url":"https://api.github.com/users/croraf/events{/privacy}","received_events_url":"https://api.github.com/users/croraf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-19T15:19:08Z","updated_at":"2017-07-19T15:58:41Z","closed_at":null,"body":"My react-native application (on Android) does not shut down when back button is pressed. It closes and goes in the background and runs there (animates). This is probably the intended behavior, but I'd like to shut down application on back or home button press.\r\n\r\nI also tried this, but got the same outcome:\r\n```\r\nBackHandler.addEventListener('hardwareBackPress', () => {\r\n\r\n  console.log('back pressed');\r\n  BackHandler.exitApp();\r\n});\r\n```\r\n\r\nP.S. I'm using Expo for development and deployment, and also start the app through it."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/316433497","html_url":"https://github.com/facebook/react-native/issues/15106#issuecomment-316433497","issue_url":"https://api.github.com/repos/facebook/react-native/issues/15106","id":316433497,"user":{"login":"charpeni","id":7189823,"avatar_url":"https://avatars1.githubusercontent.com/u/7189823?v=4","gravatar_id":"","url":"https://api.github.com/users/charpeni","html_url":"https://github.com/charpeni","followers_url":"https://api.github.com/users/charpeni/followers","following_url":"https://api.github.com/users/charpeni/following{/other_user}","gists_url":"https://api.github.com/users/charpeni/gists{/gist_id}","starred_url":"https://api.github.com/users/charpeni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charpeni/subscriptions","organizations_url":"https://api.github.com/users/charpeni/orgs","repos_url":"https://api.github.com/users/charpeni/repos","events_url":"https://api.github.com/users/charpeni/events{/privacy}","received_events_url":"https://api.github.com/users/charpeni/received_events","type":"User","site_admin":false},"created_at":"2017-07-19T15:58:41Z","updated_at":"2017-07-19T15:58:41Z","body":"Have you check the documentation on [BackHandler](https://facebook.github.io/react-native/docs/backhandler.html)?\r\n\r\nIt seems like an integration issue to me. But if it's really an issue, please reopen an issue and reproduce the issue using [Snack](http://snack.expo.io). This step is necessary for people to be able to see and debug the issue being reported."}}
{"actor":{"display_login":"charpeni"}}