{"action":"created","issue":{"url":"https://api.github.com/repos/storybooks/storybook/issues/1192","repository_url":"https://api.github.com/repos/storybooks/storybook","labels_url":"https://api.github.com/repos/storybooks/storybook/issues/1192/labels{/name}","comments_url":"https://api.github.com/repos/storybooks/storybook/issues/1192/comments","events_url":"https://api.github.com/repos/storybooks/storybook/issues/1192/events","html_url":"https://github.com/storybooks/storybook/issues/1192","id":233499041,"number":1192,"title":"Options addon must be configured *after* the preview has rendered in React Native","user":{"login":"tmeasday","id":132554,"avatar_url":"https://avatars1.githubusercontent.com/u/132554?v=4","gravatar_id":"","url":"https://api.github.com/users/tmeasday","html_url":"https://github.com/tmeasday","followers_url":"https://api.github.com/users/tmeasday/followers","following_url":"https://api.github.com/users/tmeasday/following{/other_user}","gists_url":"https://api.github.com/users/tmeasday/gists{/gist_id}","starred_url":"https://api.github.com/users/tmeasday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmeasday/subscriptions","organizations_url":"https://api.github.com/users/tmeasday/orgs","repos_url":"https://api.github.com/users/tmeasday/repos","events_url":"https://api.github.com/users/tmeasday/events{/privacy}","received_events_url":"https://api.github.com/users/tmeasday/received_events","type":"User","site_admin":false},"labels":[{"id":586524327,"url":"https://api.github.com/repos/storybooks/storybook/labels/addon:%20options","name":"addon: options","color":"fbca04","default":false},{"id":603502177,"url":"https://api.github.com/repos/storybooks/storybook/labels/app:%20react-native","name":"app: react-native","color":"f9d0c4","default":false},{"id":343576454,"url":"https://api.github.com/repos/storybooks/storybook/labels/bug","name":"bug","color":"EB484F","default":true},{"id":749539256,"url":"https://api.github.com/repos/storybooks/storybook/labels/todo","name":"todo","color":"1d2799","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-06-05T05:41:37Z","updated_at":"2018-03-24T09:05:16Z","closed_at":null,"author_association":"MEMBER","body":"As the addon channel is not created until render time in React Native (see https://github.com/storybooks/storybook/issues/1191), we cannot call `setOptions` until after that has happened. In practice, this currently means in a `setTimeout` block:\r\n\r\n```js\r\nconst StorybookUI = getStorybookUI({ ... });\r\nsetTimeout(() => setOptions({ ... }), 1000);\r\n```\r\n\r\n### Reproduction\r\nhttps://github.com/storybooks/storybook/issues/815#issuecomment-305822940"},"comment":{"url":"https://api.github.com/repos/storybooks/storybook/issues/comments/375857849","html_url":"https://github.com/storybooks/storybook/issues/1192#issuecomment-375857849","issue_url":"https://api.github.com/repos/storybooks/storybook/issues/1192","id":375857849,"user":{"login":"tmeasday","id":132554,"avatar_url":"https://avatars1.githubusercontent.com/u/132554?v=4","gravatar_id":"","url":"https://api.github.com/users/tmeasday","html_url":"https://github.com/tmeasday","followers_url":"https://api.github.com/users/tmeasday/followers","following_url":"https://api.github.com/users/tmeasday/following{/other_user}","gists_url":"https://api.github.com/users/tmeasday/gists{/gist_id}","starred_url":"https://api.github.com/users/tmeasday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmeasday/subscriptions","organizations_url":"https://api.github.com/users/tmeasday/orgs","repos_url":"https://api.github.com/users/tmeasday/repos","events_url":"https://api.github.com/users/tmeasday/events{/privacy}","received_events_url":"https://api.github.com/users/tmeasday/received_events","type":"User","site_admin":false},"created_at":"2018-03-24T09:05:16Z","updated_at":"2018-03-24T09:05:16Z","author_association":"MEMBER","body":"@danielduan as far as I know this remains an issue. I have not quite been brave enough to touch RN (which i don't use personally day-to-day) to try and resolve it, but I suspect it wouldn't be very hard to fix."}}
{"actor":{"display_login":"tmeasday"}}