{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/1073","labels_url":"https://api.github.com/repos/facebook/react-native/issues/1073/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/1073/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/1073/events","html_url":"https://github.com/facebook/react-native/issues/1073","id":72138738,"number":1073,"title":"Multiples Components best practices: sharing bridge?","user":{"login":"finalquest","id":346400,"avatar_url":"https://avatars.githubusercontent.com/u/346400?v=3","gravatar_id":"","url":"https://api.github.com/users/finalquest","html_url":"https://github.com/finalquest","followers_url":"https://api.github.com/users/finalquest/followers","following_url":"https://api.github.com/users/finalquest/following{/other_user}","gists_url":"https://api.github.com/users/finalquest/gists{/gist_id}","starred_url":"https://api.github.com/users/finalquest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finalquest/subscriptions","organizations_url":"https://api.github.com/users/finalquest/orgs","repos_url":"https://api.github.com/users/finalquest/repos","events_url":"https://api.github.com/users/finalquest/events{/privacy}","received_events_url":"https://api.github.com/users/finalquest/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-30T11:59:32Z","updated_at":"2015-09-08T06:22:55Z","closed_at":"2015-04-30T17:03:01Z","body":"Hi again.\r\nThe context first:\r\n\r\nIm using RN as the V in MVC. I've created a JS with a RN component, created a UIView in the obj-c side, and use a RCTRootView (initWithBridge) as a subview.\r\nEverything works fine.\r\n\r\nNow the question.\r\nSuppose that I have a two RN components, in two JS files (DetailView.js, SomeOtherView.js).\r\nIs there a way to make a single JS file with the 2 components, so I can use only one bridge and share it. I dont really understand how can I achieve this, and use initWithBridge: moduleName:\r\n\r\nSorry if is a super noob question.\r\nThanks and regards "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/138448177","html_url":"https://github.com/facebook/react-native/issues/1073#issuecomment-138448177","issue_url":"https://api.github.com/repos/facebook/react-native/issues/1073","id":138448177,"user":{"login":"grittymindy","id":11732306,"avatar_url":"https://avatars.githubusercontent.com/u/11732306?v=3","gravatar_id":"","url":"https://api.github.com/users/grittymindy","html_url":"https://github.com/grittymindy","followers_url":"https://api.github.com/users/grittymindy/followers","following_url":"https://api.github.com/users/grittymindy/following{/other_user}","gists_url":"https://api.github.com/users/grittymindy/gists{/gist_id}","starred_url":"https://api.github.com/users/grittymindy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grittymindy/subscriptions","organizations_url":"https://api.github.com/users/grittymindy/orgs","repos_url":"https://api.github.com/users/grittymindy/repos","events_url":"https://api.github.com/users/grittymindy/events{/privacy}","received_events_url":"https://api.github.com/users/grittymindy/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T06:22:55Z","updated_at":"2015-09-08T06:22:55Z","body":"@brentvatne can you give some more details about how to put multiple JS files into a single bundle, using react-native bundle?"}}