Skip to content

Instantly share code, notes, and snippets.

@tanner-west
Created June 30, 2023 02:10
Show Gist options
  • Save tanner-west/86dd9ba2eb2c3fc815f83e99c60d40fd to your computer and use it in GitHub Desktop.
Save tanner-west/86dd9ba2eb2c3fc815f83e99c60d40fd to your computer and use it in GitHub Desktop.
//
// RCTVisionModule.swift
// VisionNativeModulePOC
//
// Created by Tanner West on 6/2/23.
//
import Foundation
@objc(RCTVisionModule)
class RCTVisionModule: NSObject {
@objc(sayHello:specialNumber:)
func sayHello(_ specialMessage: String, specialNumber: NSNumber) {
print("read this special message: ", specialMessage)
print("look at this special number: ", specialNumber) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment