Quantcast
Viewing all articles
Browse latest Browse all 17050

How to pass parameter to swift class from react native bridge

I have a react native app and I call a swift class from this app. I use a bridge for that and I want to pass a parameter to init of my Counter class. How can I do that? I am very new on swift and react.

@interface RCT_EXTERN_MODULE(Counter, NSObject)

swift version is 5.0 react native version is 0.62.1


Viewing all articles
Browse latest Browse all 17050

Trending Articles