{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/3202","repository_url":"https://api.github.com/repos/wix/react-native-navigation","labels_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3202/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3202/comments","events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3202/events","html_url":"https://github.com/wix/react-native-navigation/issues/3202","id":322716636,"number":3202,"title":"[v2] showOverlay with same ID","user":{"login":"yusufyildirim","id":22980987,"avatar_url":"https://avatars2.githubusercontent.com/u/22980987?v=4","gravatar_id":"","url":"https://api.github.com/users/yusufyildirim","html_url":"https://github.com/yusufyildirim","followers_url":"https://api.github.com/users/yusufyildirim/followers","following_url":"https://api.github.com/users/yusufyildirim/following{/other_user}","gists_url":"https://api.github.com/users/yusufyildirim/gists{/gist_id}","starred_url":"https://api.github.com/users/yusufyildirim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusufyildirim/subscriptions","organizations_url":"https://api.github.com/users/yusufyildirim/orgs","repos_url":"https://api.github.com/users/yusufyildirim/repos","events_url":"https://api.github.com/users/yusufyildirim/events{/privacy}","received_events_url":"https://api.github.com/users/yusufyildirim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-14T08:24:19Z","updated_at":"2018-05-14T22:03:35Z","closed_at":"2018-05-14T22:03:35Z","author_association":"NONE","body":"### Issue Description\r\nHi, I'm facing with a problem about the overlays and modals. Whenever I try  to show an overlay with existing id, it throw an error. After some research, I found this related issue https://github.com/wix/react-native-navigation/issues/3081. I explained the steps for reproduce this error but I wanna tell you how I solved it too. Here is my temporary solution:\r\n\r\nI added a function to Navigation object called setIdFree\r\n`Navigation.setIdFree = componentId => Navigation.store.cleanId(componentId);`\r\n\r\nAfter that, I called this setIdFree function right after whenever I call the dismissOverlay function\r\n`navigation.dismissOverlay('LoadingModal');`\r\n`navigation.setIdFree('LoadingModal')`\r\n\r\nWith this way, error is gone and everything is working as expected.\r\n\r\nI tried with modals too, modals are not throwing error but not showing the second modal too (with same id)\r\n\r\nSum: So, I know showing a modal, overlay or screen with same id is forbidden but even after we dismiss previous one? I think you guys should free the id whenever dismiss function called ( for modals and overlays at least ) or at least you can give us a way to do this manually like I did.\r\n\r\nThank you so much\r\n\r\n### Steps to Reproduce / Code Snippets / Screenshots\r\n\r\nshowOverlay with id: LoadingOverlay\r\ndismissOverlay with id: LoadingOverlay\r\n-everything is fine for now-\r\nafter then, showOverlay with id: LoadingOverlay again (nothing appears)\r\ndismissOverlay with id: LoadingOverlay\r\n-error occurs-\r\n\r\n![simulator screen shot - iphone 6 - 2018-05-13 at 21 16 05](https://user-images.githubusercontent.com/22980987/39984667-8c85cfa0-5764-11e8-8195-5549f286c434.png)\r\n\r\n\r\n---\r\n### Environment\r\n* React Native Navigation version: v2@alpha\r\n* React Native version: 0.55.4\r\n* Platform(s) (iOS, Android, or both?): iOS (Didn't test Android)\r\n* Device info (Simulator/Device? OS version? Debug/Release?): Simulator / Debug / iOS 11.3"},"comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments/388977628","html_url":"https://github.com/wix/react-native-navigation/issues/3202#issuecomment-388977628","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/3202","id":388977628,"user":{"login":"yusufyildirim","id":22980987,"avatar_url":"https://avatars2.githubusercontent.com/u/22980987?v=4","gravatar_id":"","url":"https://api.github.com/users/yusufyildirim","html_url":"https://github.com/yusufyildirim","followers_url":"https://api.github.com/users/yusufyildirim/followers","following_url":"https://api.github.com/users/yusufyildirim/following{/other_user}","gists_url":"https://api.github.com/users/yusufyildirim/gists{/gist_id}","starred_url":"https://api.github.com/users/yusufyildirim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusufyildirim/subscriptions","organizations_url":"https://api.github.com/users/yusufyildirim/orgs","repos_url":"https://api.github.com/users/yusufyildirim/repos","events_url":"https://api.github.com/users/yusufyildirim/events{/privacy}","received_events_url":"https://api.github.com/users/yusufyildirim/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T22:03:35Z","updated_at":"2018-05-14T22:03:35Z","author_association":"NONE","body":"And now, I saw https://github.com/wix/react-native-navigation/commit/7974b00307a7f94a9874de27a7ab9012a25d2a81 ... Closing the issue :D 🎉 "}}
{"actor":{"display_login":"yusufyildirim"}}