Skip to content

[Swift] Incomplete documentation for exporting custom Swift module? #1468

@kevindeleon

Description

@kevindeleon

I was working on creating a custom module using swift based on a tutorial by Jay Garcia. I've got everything working, but one thing I did run into that doesn't seem to be in the documentation is the need for an objective-c bridging file (see in my github repo the following file) that contains an import for RCTBridgeModule.h. Without that bridging header file, I receive an error on build that Xcode can't find the bridging header file, and without the import statement in that file, I receive a build error saying that I'm trying to use an undeclared type (RCTResponseSenderBlock).

I'm not a Swift guru, so I'm not sure if that is something I should have just known and has been left out for that reason, an error on my part or if it's a piece of the documentation that is missing. If it's missing documentation, I can try to write something up for it, but not being a Swift expert, I'd definitely need someone to review it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions