How do you call Swift native function from React Native?

swift // @objc(YourModule) class YourModule: NSObject { @objc func callNativeEvent(callback:RCTResponseSenderBlock) -> Void { // Here you can do your work and pass an object to the callback function. // You can save assign a `callback` to the class property (e.g self. eventCallback = callback) // and invoke that self.

Sizin İçin Seçtik  Jisoo soyadı ne?

Leave a Reply

Your email address will not be published. Required fields are marked *