{"action":"created","issue":{"url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/149","repository_url":"https://api.github.com/repos/lwansbrough/react-native-camera","labels_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/149/comments","events_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/149/events","html_url":"https://github.com/lwansbrough/react-native-camera/issues/149","id":125860211,"number":149,"title":"Children components (visually) persist between umount and re-mount","user":{"login":"monyxie","id":703164,"avatar_url":"https://avatars.githubusercontent.com/u/703164?v=3","gravatar_id":"","url":"https://api.github.com/users/monyxie","html_url":"https://github.com/monyxie","followers_url":"https://api.github.com/users/monyxie/followers","following_url":"https://api.github.com/users/monyxie/following{/other_user}","gists_url":"https://api.github.com/users/monyxie/gists{/gist_id}","starred_url":"https://api.github.com/users/monyxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monyxie/subscriptions","organizations_url":"https://api.github.com/users/monyxie/orgs","repos_url":"https://api.github.com/users/monyxie/repos","events_url":"https://api.github.com/users/monyxie/events{/privacy}","received_events_url":"https://api.github.com/users/monyxie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lwansbrough/react-native-camera/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-11T01:46:37Z","updated_at":"2016-03-10T19:29:38Z","closed_at":null,"body":"When a `<Camera />` component is unmounted and mounted again, its children components will persist. \r\n[Demo](https://gist.github.com/monyxie/dd0552a72262fe508891):\r\n![rn-camera mov](https://cloud.githubusercontent.com/assets/703164/12225476/3fde110e-b846-11e5-8d7e-c0b8919dc1a5.gif)\r\nIn the demo, everytime `<Camera />` mounts, it renders a randomly positioned line as its child. You can see the previous lines persist when `<Camera />` umounts and mounts again."},"comment":{"url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/comments/195010520","html_url":"https://github.com/lwansbrough/react-native-camera/issues/149#issuecomment-195010520","issue_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/149","id":195010520,"user":{"login":"MatthewRDodds","id":1717864,"avatar_url":"https://avatars.githubusercontent.com/u/1717864?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthewRDodds","html_url":"https://github.com/MatthewRDodds","followers_url":"https://api.github.com/users/MatthewRDodds/followers","following_url":"https://api.github.com/users/MatthewRDodds/following{/other_user}","gists_url":"https://api.github.com/users/MatthewRDodds/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewRDodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewRDodds/subscriptions","organizations_url":"https://api.github.com/users/MatthewRDodds/orgs","repos_url":"https://api.github.com/users/MatthewRDodds/repos","events_url":"https://api.github.com/users/MatthewRDodds/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewRDodds/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T19:29:38Z","updated_at":"2016-03-10T19:29:38Z","body":"I'm experiencing this same issue with iOS when trying to show a slightly different camera view (scanning barcode vs taking a picture):\r\n\r\n![screen shot 2016-03-10 at 2 27 09 pm](https://cloud.githubusercontent.com/assets/1717864/13681659/492a27f2-e6cc-11e5-8399-a43d038f84e1.png)\r\n\r\nThe previous view is visually persistent, as if it's just been chilling in the background until I render my next camera view on top of it.\r\n\r\n@monyxie were you able to find a workaround? "}}