Swift and React Native Turbo Modules

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024
  • НаукаНаука

Комментарии • 13

  • @didierrestrepo7010
    @didierrestrepo7010 2 года назад +3

    Your explanation is excellent. I tried to do in my case, it was to extend the functionality through Swift, calling the Swift class and functions in Objective-C, or passing parameters to the Swift functions from Objective-c, that is, I use what is generated from codegen, but I do the extension with Swift, in order to be able to use many current Swift libraries and documentation, now I am trying to install a swift library in the pod but I have had problems with flipper, because I have to activate "use_frameworks" in the Podfile .

    • @ospfranco
      @ospfranco  2 года назад +1

      yeah, but you could've always done that, nothing fancy about internally calling other swift functions, but kinda beats the point of codegen

  • @dmitrymatatov7639
    @dmitrymatatov7639 Год назад

    Hey, thank you for your videos. But if I export swift functionality to Objective-C, and then connect JSI to Objective-C, will it work?

    • @ospfranco
      @ospfranco  Год назад +2

      Yeah, but there is overhead. I have managed to call Swift functions directly from C++ using Swift 5.9 though

  • @edgarpascacio1813
    @edgarpascacio1813 Год назад +1

    Hey, thank you for your tutorial, I am currently trying to do something similar, I have a Swift XCFramework and I'm trying to create a Turbo Native Module that will load the Swift XCFramework code into React Native, do you think that is possible? If not, what would you suggest as a solution for this specific case? Thank you.

    • @ospfranco
      @ospfranco  Год назад

      Check out the latest video I just uploaded (Using rust in react-native). Loading XCFramework modules work just fine.

  • @kamildoan
    @kamildoan 2 года назад +1

    React Native team may solve some performance issues but it is too complex to add turbo modules. Now you have to know c++ and objective c. I have just checked how flutter is implementing native modules. It is way more easier than react native.

    • @ospfranco
      @ospfranco  2 года назад

      🤷‍♂

    • @glaze4629
      @glaze4629 Год назад

      Flutter and RN have behaved kinda the same until now, both provide communication through an asynchronous message queue to the native side, i think it may take a while as this new arch thing is in a fully usable state for everybody

  • @dibayuin7859
    @dibayuin7859 2 года назад +2

    great tutorial sir, could you please make a tutorial from begining from old scholl bridge for react native and make it as a series ? and then jsi/turbo modules, I believe your channel will have lot of subs and views because there are many devs search for this tutorial, since the docs from react native is not much on internet, thank you

    • @ospfranco
      @ospfranco  2 года назад

      There is already an entire series of JSI videos on my channel

  • @r_alisher
    @r_alisher 2 года назад

    👍👍👍🔥🔥🔥

  • @gnom-om
    @gnom-om 2 года назад

    Why all people want to use Swift? Obj-C is awesome and very intuitive language.