Replies: 6 comments 15 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 |
5 replies
6 replies
|
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
|
2 replies
|
Hello, any news? Will Kotlin + Swift in Turbo Module be supported soon? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We have some hardware SDKs (thermal printers) written in Kotlin and Swift, we would like to use
create-react-native-libraryto 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?
All reactions