Replies: 6 comments 14 replies
-
Currently there is no Swift template for TurboModules. Here how you can work with Swift on TurboModules for the time being:
You can also take a look at React Native Community's sample https://github.com/react-native-community/RNNewArchitectureLibraries/tree/feat/turbomodule-swift |
Beta Was this translation helpful? Give feedback.
-
Probably this issue is related to #342 |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've resolved the problem by creating Objective-C files for the bridging,
and from there, I called the functions in the Swift files
…On Thu, 16 May 2024 at 03:25, gladius ***@***.***> wrote:
@antonyjoemathew <https://github.com/antonyjoemathew> Hi!
Where you able to run your Swift code inside the AppDelegate.mm file?
I'm trying right know but I'm stuck. Xcode isn't generating my
Pod-Name-Swift.h so my app can't compile.
I've got the following files: Name.m, Name.swift and
Pod-Name-Bridging-Header.h.
My swift class is public and has @objc <https://github.com/objc>
annotation.
Any help would be gladly appreciated :)
—
Reply to this email directly, view it on GitHub
<#351 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACESDVQAAWEJI3PWCIMFKSDZCPKWVAVCNFSM6AAAAAAUB24DYWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TINJRGAYTI>
.
You are receiving this because you were mentioned.Message ID:
<callstack/react-native-builder-bob/repo-discussions/351/comments/9451014@
github.com>
--
Regards
Antony Joe Mathew
+971555167780
+919496371536
|
Beta Was this translation helpful? Give feedback.
-
Hello, any news? Will Kotlin + Swift in Turbo Module be supported soon? |
Beta Was this translation helpful? Give feedback.
-
I was able to create a library using TurboModules and Swift So I guess I'll stick with older version and using old arch for now :( I think after we have support for Swift in TurboModules along with SPM packages then we can make something production ready using the new architecture. |
Beta Was this translation helpful? Give feedback.
-
We have some hardware SDKs (thermal printers) written in Kotlin and Swift, we would like to use
create-react-native-library
to create a React Native wrapper for both of them.Currently for the Turbo Module with backward compat option it only allows Kotlin + Objective-C, is it possible to create Kotlin + Swift template?
Beta Was this translation helpful? Give feedback.
All reactions