Skip to content

Swift support by React Native CLI #401

@radex

Description

@radex

Describe the Feature

Continuing conversation in Kraków w/ @thymikee :

I think React Native Community should head towards embracing Swift.

  • IMO it would be best to set up new RN projects with Swift configured
  • this might be unnacceptable for some since this adds a couple of MB to the binary if supporting iOS <12.2. OTOH this is similar to how Android packages are at least a couple of MB because of JSC being bundled, and it's not that big of a deal
    • it's worth checking out if just configuring Swift support (bridging header and such) is enough to trigger linking Swift even if no Swift files are actually included
  • but we could ask when setting up a project if the user wants to preconfigure Swift (that could include a Swift AppDelegate)
  • at the very least it would be nice if package auto link detected that we’re adding a Swift package and offered to set up necessary Swift support in the app project if not yet set up

I don't know CLI/RN core code very much, but I can offer to help out with the Swift / Xcode setup / CocoaPods bits.

Possible Implementations

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions