{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/207","labels_url":"https://api.github.com/repos/facebook/react-native/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/207/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/207/events","html_url":"https://github.com/facebook/react-native/issues/207","id":64587243,"number":207,"title":"Swift support in native modules","user":{"login":"mhart","id":367936,"avatar_url":"https://avatars.githubusercontent.com/u/367936?v=3","gravatar_id":"","url":"https://api.github.com/users/mhart","html_url":"https://github.com/mhart","followers_url":"https://api.github.com/users/mhart/followers","following_url":"https://api.github.com/users/mhart/following{/other_user}","gists_url":"https://api.github.com/users/mhart/gists{/gist_id}","starred_url":"https://api.github.com/users/mhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhart/subscriptions","organizations_url":"https://api.github.com/users/mhart/orgs","repos_url":"https://api.github.com/users/mhart/repos","events_url":"https://api.github.com/users/mhart/events{/privacy}","received_events_url":"https://api.github.com/users/mhart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-26T17:24:17Z","updated_at":"2015-04-16T05:16:36Z","closed_at":"2015-04-15T22:15:52Z","body":"(you all knew this was coming :smile_cat: )\r\n\r\n[The current documentation](https://github.com/facebook/react-native/blob/master/docs/NativeModulesIOS.md) suggests Swift is not yet supported, but I thought it would be good to have an issue to at least track progress on that, if it is indeed coming?\r\n\r\nThere are some related issues here, but I don't think any of them tackle Swift support at a high level:\r\n\r\n1. https://github.com/facebook/react-native/issues/68\r\n2. https://github.com/facebook/react-native/pull/115\r\n3. https://github.com/facebook/react-native/issues/23"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/93644980","html_url":"https://github.com/facebook/react-native/issues/207#issuecomment-93644980","issue_url":"https://api.github.com/repos/facebook/react-native/issues/207","id":93644980,"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-16T05:16:36Z","updated_at":"2015-04-16T05:16:36Z","body":"Not to derail the topic at hand but for context: there are lots of little things about Swift that make Objective-C the better choice for now. The tooling for Swift is premature in that build times are worse, every app that uses Swift adds ~6MB to its binary for the runtime, Xcode crashes frequently, the Swift compiler produces code with bugs, the language is changing in backwards-incompatible ways, etc. Apple will fix these issues but it will be a year or two before developing with Swift is better than developing with Objective-C.\r\n\r\n2c: my experience learning the languages was that Objective-C was actually easier since it's a relatively thin layer above C and is a rather dynamic language. It also works well with all the iOS APIs whereas sometimes there are interop issues with Swift. So generally speaking, I expect developers to have a better time writing native React modules in Objective-C at this time.\r\n\r\nThat all said, eventually supporting Swift probably makes sense as it improves and exploring how Swift could export native methods to JS would be useful."}}