{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/652","labels_url":"https://api.github.com/repos/facebook/react-native/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/652/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/652/events","html_url":"https://github.com/facebook/react-native/pull/652","id":66220857,"number":652,"title":"[Init] Add the executor class to RCTBridge's init method","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":[{"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"009900"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-03T20:16:50Z","updated_at":"2015-04-07T23:14:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/652","html_url":"https://github.com/facebook/react-native/pull/652","diff_url":"https://github.com/facebook/react-native/pull/652.diff","patch_url":"https://github.com/facebook/react-native/pull/652.patch"},"body":"If you construct an RCTBridge you may want to configure the executor. However the constructor synchronously calls `setUp` and sets up the executor. Instead, let the code that constructs the bridge specify the executor class up front.\r\n\r\nNow that RCTRootView takes a bridge in one of its initializers, it is possible to create a bridge with a custom executor and then use that to set up a root view.\r\n\r\nFixes #288 and supersedes #291"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/90756915","html_url":"https://github.com/facebook/react-native/pull/652#issuecomment-90756915","issue_url":"https://api.github.com/repos/facebook/react-native/issues/652","id":90756915,"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-04-07T23:14:20Z","updated_at":"2015-04-07T23:14:20Z","body":"Thinking about this some more, I think `executorClass` and `debugExecutorClass` should be replaced by `executorBlock` and `debugExecutorBlock`. This faciliates using the V8 debugger on the phone:\r\n```objc\r\ndebugExecutorBlock: ^{\r\n  return [[RCTWebSocketExecutor alloc] initWithURL:proxyURLWithMacBookHost];\r\n}\r\n```"}}