{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/21967","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/21967/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/21967/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/21967/events","html_url":"https://github.com/facebook/react-native/issues/21967","id":374509508,"node_id":"MDU6SXNzdWUzNzQ1MDk1MDg=","number":21967,"title":"React Hooks not working ","user":{"login":"theluk","id":580946,"node_id":"MDQ6VXNlcjU4MDk0Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/580946?v=4","gravatar_id":"","url":"https://api.github.com/users/theluk","html_url":"https://github.com/theluk","followers_url":"https://api.github.com/users/theluk/followers","following_url":"https://api.github.com/users/theluk/following{/other_user}","gists_url":"https://api.github.com/users/theluk/gists{/gist_id}","starred_url":"https://api.github.com/users/theluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theluk/subscriptions","organizations_url":"https://api.github.com/users/theluk/orgs","repos_url":"https://api.github.com/users/theluk/repos","events_url":"https://api.github.com/users/theluk/events{/privacy}","received_events_url":"https://api.github.com/users/theluk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-26T19:03:56Z","updated_at":"2018-10-26T19:03:56Z","closed_at":null,"author_association":"NONE","body":"<!-- Requirements: please go through this checklist before opening a new issue -->\r\n  - [x] Review the documentation: https://facebook.github.io/react-native\r\n  - [x] Search for existing issues: https://github.com/facebook/react-native/issues\r\n  - [x] Use the latest React Native release: https://github.com/facebook/react-native/releases\r\n\r\n## Environment\r\nexpo v2.20\r\nreact 16.7.0-alpha\r\n\r\n## Description\r\nWhen using React Hooks like `useState` within a function component, I get the following error message.\r\n\r\n> hooks can only be called inside the body of a function component\r\n\r\n```\r\nexport default function RootContainer(props) {\r\n  const [something, setSomething] = useState('nothing');\r\n\r\n  return (\r\n    <View />\r\n  );\r\n};\r\n```"}}
{"actor":{"display_login":"theluk"}}