You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi i hope you can help me i try to create a module with swift method but it response error
i try of differents way and nothing
Error
getTOTP:tiempo:fecha:resolver:rejecter: is not a recognized Objective-C method.' was thrown while invoking getTOTP on target RNTotplibe with params (
2502,
2503
)
.swift
import Foundation
@objc(RNTotplibe)
class RNTotplibe: NSObject {
@objc(getTOTP:tiempo:fecha:resolve:reject:)
func getTOTP(semilla: String, tiempo: String, fecha: String, resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) -> Void {
// let valor = generateTOTP(semilla, movingFactor: counter, codeDigits: 6)
resolve(["yfytfvtyytyyff"]);
}
}
I think this is something that should be fixed on create-react-native-module that this utility depends on. There seem to be some solutions already discussed in brody4hire/create-react-native-module#221.
I would like to keep discussion in brody4hire/create-react-native-module#221, which is now pinned with the help wanted label. I personally do not work with Swift, best to get help from others in the user community. Thanks.
Hi i hope you can help me i try to create a module with swift method but it response error
i try of differents way and nothing
https://github.com/paulcapelo/simpleTotp.git
thanks for your coments
The text was updated successfully, but these errors were encountered: