react-native-vision-camera/ios/VisionCamera.swift
Marc Rousavy c04a4b72be Bootstrap
2021-02-19 16:07:53 +01:00

9 lines
243 B
Swift

@objc(VisionCamera)
class VisionCamera: NSObject {
@objc(multiply:withB:withResolver:withRejecter:)
func multiply(a: Float, b: Float, resolve:RCTPromiseResolveBlock,reject:RCTPromiseRejectBlock) -> Void {
resolve(a*b)
}
}