{"action":"created","issue":{"url":"https://api.github.com/repos/kmagiera/react-native-screens/issues/15","repository_url":"https://api.github.com/repos/kmagiera/react-native-screens","labels_url":"https://api.github.com/repos/kmagiera/react-native-screens/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/kmagiera/react-native-screens/issues/15/comments","events_url":"https://api.github.com/repos/kmagiera/react-native-screens/issues/15/events","html_url":"https://github.com/kmagiera/react-native-screens/issues/15","id":362330814,"node_id":"MDU6SXNzdWUzNjIzMzA4MTQ=","number":15,"title":"Tried to register two views with the same name RNSScreen","user":{"login":"raphaelrk","id":3377845,"node_id":"MDQ6VXNlcjMzNzc4NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/3377845?v=4","gravatar_id":"","url":"https://api.github.com/users/raphaelrk","html_url":"https://github.com/raphaelrk","followers_url":"https://api.github.com/users/raphaelrk/followers","following_url":"https://api.github.com/users/raphaelrk/following{/other_user}","gists_url":"https://api.github.com/users/raphaelrk/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelrk/subscriptions","organizations_url":"https://api.github.com/users/raphaelrk/orgs","repos_url":"https://api.github.com/users/raphaelrk/repos","events_url":"https://api.github.com/users/raphaelrk/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelrk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-09-20T19:26:11Z","updated_at":"2018-10-23T20:19:20Z","closed_at":null,"author_association":"NONE","body":"Getting the following issue when I add `import { useScreens } from 'react-native-screens';` in my App.js\r\n\r\n![simulator screen shot - iphone se - 2018-09-20 at 15 25 00](https://user-images.githubusercontent.com/3377845/45841983-67392400-bce9-11e8-88da-80e73dd4a847.png)\r\n\r\n![simulator screen shot - iphone se - 2018-09-20 at 15 25 02](https://user-images.githubusercontent.com/3377845/45841982-67392400-bce9-11e8-8f60-a5abf11ef065.png)\r\n\r\n## react-native info\r\nEnvironment:\r\n  OS: macOS High Sierra 10.13.5\r\n  Node: 10.10.0\r\n  Yarn: 1.9.4\r\n  npm: 6.4.1\r\n  Watchman: 4.9.0\r\n  Xcode: Xcode 9.4.1 Build version 9F2000\r\n  Android Studio: Not Found\r\n\r\nPackages: (wanted => installed)\r\n  react: 16.3.1 => 16.3.1\r\n  react-native: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz => 0.55.4\r\n\r\n## Etc\r\n  \"expo\": \"^30.0.0\",\r\n  \"react-native-screens\": \"^1.0.0-alpha.12\",\r\n\r\nHappens in both dev and production mode\r\nWas not able to reproduce in a [simple snack](https://snack.expo.io/@raphaelrk/rnsscreen-bug)"},"comment":{"url":"https://api.github.com/repos/kmagiera/react-native-screens/issues/comments/432403745","html_url":"https://github.com/kmagiera/react-native-screens/issues/15#issuecomment-432403745","issue_url":"https://api.github.com/repos/kmagiera/react-native-screens/issues/15","id":432403745,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjQwMzc0NQ==","user":{"login":"brentvatne","id":90494,"node_id":"MDQ6VXNlcjkwNDk0","avatar_url":"https://avatars2.githubusercontent.com/u/90494?v=4","gravatar_id":"","url":"https://api.github.com/users/brentvatne","html_url":"https://github.com/brentvatne","followers_url":"https://api.github.com/users/brentvatne/followers","following_url":"https://api.github.com/users/brentvatne/following{/other_user}","gists_url":"https://api.github.com/users/brentvatne/gists{/gist_id}","starred_url":"https://api.github.com/users/brentvatne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentvatne/subscriptions","organizations_url":"https://api.github.com/users/brentvatne/orgs","repos_url":"https://api.github.com/users/brentvatne/repos","events_url":"https://api.github.com/users/brentvatne/events{/privacy}","received_events_url":"https://api.github.com/users/brentvatne/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T20:19:20Z","updated_at":"2018-10-23T20:19:20Z","author_association":"COLLABORATOR","body":"2.x of react-navigation depends on ^1.0.0-alpha.11 which should match 1.0.0-alpha.15. *however*, another package has installed react-native-screens with a more strict dependency that doesn't match this range, for example if your package.json explicitly includes react-native-screens@1.0.0-alpha.5, then you will end up with 2 copies of react-native-screens. i'd check your yarn.lock to see what package is installing which version of it.\r\n\r\nuseful reference:\r\nhttps://semver.npmjs.com/\r\n<img width=\"1163\" alt=\"screen shot 2018-10-23 at 1 18 07 pm\" src=\"https://user-images.githubusercontent.com/90494/47388109-31aba000-d6c6-11e8-9651-f416dfc4f36f.png\">\r\n\r\n"}}
{"actor":{"display_login":"brentvatne"}}