I'm following a documentation on braintree for IOS.
It recommends to implement a method like this (in swift):
func onLookupComplete(_ request: BTThreeDSecureRequest, result: BTThreeDSecureLookup, next: @escaping () -> Void) {
// Optionally inspect the lookup result and prepare UI if a challenge is required
next()
}
My target code is some objective C for react native module where function are defined like this :
RCT_EXPORT_METHOD(getAddressLine1: (NSString *) address
callback: (RCTResponseSenderBlock) callback)
{ ... }
What would be the equivalent of the swift implementation for the objective C module (especially the "next: @escaping" part) ?
Note: here is the braintree doc
Thank you