{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/982","labels_url":"https://api.github.com/repos/facebook/react-native/issues/982/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/982/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/982/events","html_url":"https://github.com/facebook/react-native/pull/982","id":70316628,"number":982,"title":"Add support for exporting Swift modules","user":{"login":"robertjpayne","id":214288,"avatar_url":"https://avatars.githubusercontent.com/u/214288?v=3","gravatar_id":"","url":"https://api.github.com/users/robertjpayne","html_url":"https://github.com/robertjpayne","followers_url":"https://api.github.com/users/robertjpayne/followers","following_url":"https://api.github.com/users/robertjpayne/following{/other_user}","gists_url":"https://api.github.com/users/robertjpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/robertjpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertjpayne/subscriptions","organizations_url":"https://api.github.com/users/robertjpayne/orgs","repos_url":"https://api.github.com/users/robertjpayne/repos","events_url":"https://api.github.com/users/robertjpayne/events{/privacy}","received_events_url":"https://api.github.com/users/robertjpayne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7"},{"url":"https://api.github.com/repos/facebook/react-native/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-23T05:50:53Z","updated_at":"2015-04-23T08:15:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/982","html_url":"https://github.com/facebook/react-native/pull/982","diff_url":"https://github.com/facebook/react-native/pull/982.diff","patch_url":"https://github.com/facebook/react-native/pull/982.patch"},"body":"External modules are any Objective-C class in which the implementation is private. This currently will be most useful for Swift classes but also has potential to allow exposing methods on 3rd party libraries to the bridge."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/95486477","html_url":"https://github.com/facebook/react-native/pull/982#issuecomment-95486477","issue_url":"https://api.github.com/repos/facebook/react-native/issues/982","id":95486477,"user":{"login":"nicklockwood","id":546885,"avatar_url":"https://avatars.githubusercontent.com/u/546885?v=3","gravatar_id":"","url":"https://api.github.com/users/nicklockwood","html_url":"https://github.com/nicklockwood","followers_url":"https://api.github.com/users/nicklockwood/followers","following_url":"https://api.github.com/users/nicklockwood/following{/other_user}","gists_url":"https://api.github.com/users/nicklockwood/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklockwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklockwood/subscriptions","organizations_url":"https://api.github.com/users/nicklockwood/orgs","repos_url":"https://api.github.com/users/nicklockwood/repos","events_url":"https://api.github.com/users/nicklockwood/events{/privacy}","received_events_url":"https://api.github.com/users/nicklockwood/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T08:15:45Z","updated_at":"2015-04-23T08:15:45Z","body":"@robertjpayne I have some work to do in order to support this.\r\n\r\nBecause of the data segment registration mechanism, right now, even if you pass a module in explicitly via the moduleProvider block, it won't work if the class is defined outside the main binary because it can't pick up the metadata. That's why the RCTTest module must be included in the app target right now instead of just the test target.\r\n\r\nShouldn't be too hard to fix this though."}}