Tagged: Swift

Create a React Native custom module (with Swift)

Here is a quick and dirty example of how one can expose a custom module to React Native using Swift. Product-Bridging-Header.h – Bridge header file MySwiftThingy.m – Register Swift code with the React Native Bridge MySwiftThingy.swift – Custom Swift component Call it from JavaScript: