{"action":"created","issue":{"url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4897","repository_url":"https://api.github.com/repos/react-navigation/react-navigation","labels_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4897/labels{/name}","comments_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4897/comments","events_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4897/events","html_url":"https://github.com/react-navigation/react-navigation/issues/4897","id":353861549,"node_id":"MDU6SXNzdWUzNTM4NjE1NDk=","number":4897,"title":"Requiring module \"Linking.js\" - Native module cannot be null ","user":{"login":"jforaker","id":2042031,"node_id":"MDQ6VXNlcjIwNDIwMzE=","avatar_url":"https://avatars1.githubusercontent.com/u/2042031?v=4","gravatar_id":"","url":"https://api.github.com/users/jforaker","html_url":"https://github.com/jforaker","followers_url":"https://api.github.com/users/jforaker/followers","following_url":"https://api.github.com/users/jforaker/following{/other_user}","gists_url":"https://api.github.com/users/jforaker/gists{/gist_id}","starred_url":"https://api.github.com/users/jforaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jforaker/subscriptions","organizations_url":"https://api.github.com/users/jforaker/orgs","repos_url":"https://api.github.com/users/jforaker/repos","events_url":"https://api.github.com/users/jforaker/events{/privacy}","received_events_url":"https://api.github.com/users/jforaker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-24T17:10:30Z","updated_at":"2018-08-24T17:12:36Z","closed_at":"2018-08-24T17:12:36Z","author_association":"NONE","body":"Getting the RSOD (red screen of death) using the example provided from the docs website/snack. I do believe this is a bug as I have searched every other outlet suggested with no luck. \r\n\r\nVersions below.\r\n\r\nInterestingly, when I dismiss the red screen, I can interact with the screens/navigation - though there is a yellow box warning and the same in chrome debugger: \r\n\r\n```\r\nPossible Unhandled Promise Rejection (id: 0):\r\nTypeError: Cannot read property 'addEventListener' of undefined\r\nTypeError: Cannot read property 'addEventListener' of undefined\r\n```\r\n\r\nMy app, which is essentially copied from https://snack.expo.io/@react-navigation/our-first-navigate-v2 : \r\n\r\n```js\r\nimport React from 'react';\r\nimport { View, Text, Button } from 'react-native';\r\nimport { createStackNavigator } from 'react-navigation';\r\n\r\nclass HomeScreen extends React.Component {\r\n  render() {\r\n    return (\r\n      <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>\r\n        <Text>Home Screen</Text>\r\n        <Button\r\n          title=\"Go to Details\"\r\n          onPress={() => this.props.navigation.navigate('Details')}\r\n        />\r\n      </View>\r\n    );\r\n  }\r\n}\r\n\r\nclass DetailsScreen extends React.Component {\r\n  render() {\r\n    return (\r\n      <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>\r\n        <Text>Details Screen</Text>\r\n      </View>\r\n    );\r\n  }\r\n}\r\n\r\nconst RootStack = createStackNavigator(\r\n  {\r\n    Home: HomeScreen,\r\n    Details: DetailsScreen\r\n  },\r\n  {\r\n    initialRouteName: 'Home'\r\n  }\r\n);\r\n\r\nexport default class Stack extends React.Component {\r\n  render() {\r\n    return <RootStack />;\r\n  }\r\n}\r\n```\r\n\r\nAnd in my `index.js`\r\n\r\n```js\r\nAppRegistry.registerComponent('ViewStack', () => Stack);\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/2042031/44597526-ef391600-a79d-11e8-9cad-34830d676279.png)\r\n\r\n\r\n![image](https://user-images.githubusercontent.com/2042031/44595179-4804b080-a796-11e8-8463-7a9d4a62b23d.png)\r\n\r\n\r\n### Your Environment\r\n\r\n| software         | version\r\n| ---------------- | -------\r\n| react-navigation | 2.12.1\r\n| react-native     | 0.56\r\n| node             | 9.0\r\n| npm or yarn      | npm\r\n\r\n\r\nAny thoughts, ideas or pointers in the right direction would be greatly appreciated :) \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/react-navigation/react-navigation/issues/comments/415822913","html_url":"https://github.com/react-navigation/react-navigation/issues/4897#issuecomment-415822913","issue_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/4897","id":415822913,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTgyMjkxMw==","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-08-24T17:12:36Z","updated_at":"2018-08-24T17:12:36Z","author_association":"MEMBER","body":"there is no mention of Linking.js in the code you shared. you need to share an example that actually reproduces the issue or we can't help, sorry! that said, i'm very confident that it's something to do with you or some other library you're using importing Linking incorrectly"}}
{"actor":{"display_login":"brentvatne"}}