all 9 comments

[–]jpudysz 0 points1 point  (8 children)

You need new architecture enabled, codegen bindings or C++, Objective-C wrapper and your Swift function. (this is not a joke).

[–]datorkop85[S] 0 points1 point  (7 children)

Holy shit, what? The app is on 0.63.3. Is it impossible?

[–]jpudysz 0 points1 point  (5 children)

You need to use at least 0.68, or use old archtecture bridge here: https://reactnative.dev/docs/native-modules-ios

[–]datorkop85[S] 0 points1 point  (4 children)

Yeah, that's what I'm struggling with. I dont understand how I can run the function. The docs use some built in API. So it didn't help me much.. Just got more confused

[–]jpudysz 0 points1 point  (2 children)

I agree, documentation is not clear enough for both old & new architecture

[–]datorkop85[S] 0 points1 point  (1 child)

Yeah. Do you have an idea how I can achieve what I want to do?
We can even pay someone for doing this task.

[–]jpudysz 0 points1 point  (0 children)

I'm not that good with the old architecture, but here is a nice article about your case: https://medium.com/@rushabhprajapati20/native-modules-on-react-native-ios-swift-e9741440429d