{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/291","labels_url":"https://api.github.com/repos/facebook/react-native/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/291/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/291/events","html_url":"https://github.com/facebook/react-native/pull/291","id":64670299,"number":291,"title":"[RootView] Asynchronously load the bundle to give time to configure the root view","user":{"login":"ide","id":379606,"avatar_url":"https://avatars.githubusercontent.com/u/379606?v=3","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-27T01:21:52Z","updated_at":"2015-03-27T01:22:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/291","html_url":"https://github.com/facebook/react-native/pull/291","diff_url":"https://github.com/facebook/react-native/pull/291.diff","patch_url":"https://github.com/facebook/react-native/pull/291.patch"},"body":"If you construct an RCTRootView you may want to configure the executor. However the constructor synchronously calls `loadBundle` and sets up the executor and bridge. This is a quick fix that uses dispatch_async to allow the current pass of the runloop time to set up the executor.\r\n\r\nTested by constructing an RCTRootView and then customizing the executor class on the next line. Works with this patch.\r\n\r\nFixes #288"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/86783920","html_url":"https://github.com/facebook/react-native/pull/291#issuecomment-86783920","issue_url":"https://api.github.com/repos/facebook/react-native/issues/291","id":86783920,"user":{"login":"ide","id":379606,"avatar_url":"https://avatars.githubusercontent.com/u/379606?v=3","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T01:22:47Z","updated_at":"2015-03-27T01:22:47Z","body":"cc @nicklockwood I believe you are the right person to look at this. it's a quick fix but shouldn't have adverse side effects until an API change can be worked out."}}