{"action":"created","issue":{"url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/386","repository_url":"https://api.github.com/repos/lwansbrough/react-native-camera","labels_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/386/comments","events_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/386/events","html_url":"https://github.com/lwansbrough/react-native-camera/issues/386","id":173854648,"number":386,"title":"ios 10 - app crashes when view with <Camera> is rendered","user":{"login":"romanmandryk","id":7701755,"avatar_url":"https://avatars.githubusercontent.com/u/7701755?v=3","gravatar_id":"","url":"https://api.github.com/users/romanmandryk","html_url":"https://github.com/romanmandryk","followers_url":"https://api.github.com/users/romanmandryk/followers","following_url":"https://api.github.com/users/romanmandryk/following{/other_user}","gists_url":"https://api.github.com/users/romanmandryk/gists{/gist_id}","starred_url":"https://api.github.com/users/romanmandryk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanmandryk/subscriptions","organizations_url":"https://api.github.com/users/romanmandryk/orgs","repos_url":"https://api.github.com/users/romanmandryk/repos","events_url":"https://api.github.com/users/romanmandryk/events{/privacy}","received_events_url":"https://api.github.com/users/romanmandryk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-29T19:39:42Z","updated_at":"2016-09-13T00:51:02Z","closed_at":null,"body":"react-native-camera crashes the iOS app when built in XCode 8 beta running on ios 10 simulator.\r\nSame code works fine when built with XCode 7 and runs on iOS 9.3.\r\n\r\n### Steps to reproduce\r\n1. Install react-native-camera as described in README\r\n2. In Info.plist set NSCameraUsageDescription to any value (required in ios 10)\r\n3. create a sample view with Camera tag\r\n\r\n### Expected behaviour\r\nCamera preview should open\r\n\r\n### Actual behaviour\r\nAfter navigating to the view with Camera tag\r\nthe app crashes with EXC_BAD_ACCESS. XCode stops in RCTCameraManager.m:34\r\n   self.previewLayer = [AVCaptureVideoPreviewLayer layerWithSession:self.session];\r\n\r\n### Environment\r\n- **Node.js version**: 4.4.5\r\n- **React Native version**: 0.31\r\n- **React Native platform + platform version**: iOS 10.0 simulator, XCode 8 beta\r\n\r\n### react-native-camera\r\n**Version**: latest  \"master\" (29 Aug 2016)\r\n\r\n### Note\r\nI tried to downgrade to npm version of react-native-camera (0.38) and the app crashes immediately after start (also in RCTCameraManager.m in init method)\r\n\r\nAny ideas how to fix this or at least how to debug it?"},"comment":{"url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/comments/246540792","html_url":"https://github.com/lwansbrough/react-native-camera/issues/386#issuecomment-246540792","issue_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/386","id":246540792,"user":{"login":"nitrog7","id":83401,"avatar_url":"https://avatars.githubusercontent.com/u/83401?v=3","gravatar_id":"","url":"https://api.github.com/users/nitrog7","html_url":"https://github.com/nitrog7","followers_url":"https://api.github.com/users/nitrog7/followers","following_url":"https://api.github.com/users/nitrog7/following{/other_user}","gists_url":"https://api.github.com/users/nitrog7/gists{/gist_id}","starred_url":"https://api.github.com/users/nitrog7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitrog7/subscriptions","organizations_url":"https://api.github.com/users/nitrog7/orgs","repos_url":"https://api.github.com/users/nitrog7/repos","events_url":"https://api.github.com/users/nitrog7/events{/privacy}","received_events_url":"https://api.github.com/users/nitrog7/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T00:51:02Z","updated_at":"2016-09-13T00:51:02Z","body":"Just to clarify, you have to also use the master branch, not 0.3.8."}}
{"actor":{"display_login":"nitrog7"}}