Build React Native modules with Swift

  Рет қаралды 8,496

Scott Batson

Scott Batson

Күн бұрын

At Threadable, we've been working for a while on this great app called Threadable (now live on the app store). In it, we had to leverage some native modules but Objective-C was not the easiest programming language to grasp, and it doesn't seem to be as widely used as Swift. So we explored how to leverage Swift in a React Native project that depends on Objective-C
Checkout Threadable:
www.threadable...
Threadable Case Study:
upstatement.co...
My PR into react-native-webview (Objective-C):
github.com/rea...

Пікірлер: 20
@jannisroloff361
@jannisroloff361 Жыл бұрын
04:29 start with ios workspace 06:20 create swift file 06:40 create ObjectiveC Bridge Header 07:17 start with swift module 08:58 creating another ObjectiveC File 10:40 implementing swift component into react-native 13:40 creating WebWiew swift Component
@atljBoss
@atljBoss 2 жыл бұрын
Great tutorial with a good real world problem thank you for this
@ScottBatson
@ScottBatson 2 жыл бұрын
Thanks for watching!
@moosegoose1282
@moosegoose1282 9 ай бұрын
nice vid. can u also make one using functional comp on reacts side? and then publishing package and install it in a RN project
@rahulrajput18
@rahulrajput18 Жыл бұрын
Awesome man! Thanks for such an insight.
@msabaeian
@msabaeian 5 ай бұрын
Very Nice!
@gofudgeyourselves9024
@gofudgeyourselves9024 2 жыл бұрын
Can you show how to use Swift + Turbo Modules?
@r13aero
@r13aero 2 жыл бұрын
great tutorial!
@ScottBatson
@ScottBatson 2 жыл бұрын
Thanks for watching!
@elmcapp6032
@elmcapp6032 2 жыл бұрын
Could you do an example of using codeable struct. Example React native sends a json object to the swift backend then we use codeable struct and store data in useDefault
@rahulrajput18
@rahulrajput18 Жыл бұрын
Can you do more of these? Subbed and hopeful. Cheers!
@ScottBatson
@ScottBatson Жыл бұрын
I'd really like to by having a baby + work hasn't left a lot of free time. I'm hoping to get some new stuff up soon!
@rahulrajput18
@rahulrajput18 Жыл бұрын
@@ScottBatson Ohh great! All the best man :)
@cvemwanda
@cvemwanda Жыл бұрын
How does one pass in a View prop and use in in the swift file?
@tiagomsmagalhaes
@tiagomsmagalhaes Жыл бұрын
Could you check at the point (24:00) when you set the htmlString if the WKWebView would be scrollable? I went url instead but cannot scroll
@ScottBatson
@ScottBatson Жыл бұрын
Hmm We've used normal URLs with this component too and it's been scrollable. Is there something wrapping the element that might be interfering with the user input?
@swapnilvishwa156
@swapnilvishwa156 2 жыл бұрын
how to use SwiftUI
@danilocanalle
@danilocanalle 2 жыл бұрын
Hello! Did you need to do that on Android ?
@ScottBatson
@ScottBatson 2 жыл бұрын
We haven’t released our Android version yet. But when we do, we’ll have to figure out how to do it in Java or Kotlin, yes
@danilocanalle
@danilocanalle 2 жыл бұрын
@@ScottBatson Ohhh ic
Can Cursor AI build my React Native App?
18:44
Simon Grimm
Рет қаралды 12 М.
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 9 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 37 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 60 МЛН
Expo SDK 49: New Features and Improvements
59:40
notJust․dev
Рет қаралды 10 М.
Deep Dive Into React Native - Lev Vidrak
32:09
Wix Engineering Tech Talks
Рет қаралды 19 М.
Add Java Native Module inside React Native Project
19:11
Full Stack Niraj
Рет қаралды 14 М.
React Native Live -- Making an iOS native component for React Native
1:44:52
I Remade YouTube From Scratch Using Just Bash
17:51
icitry
Рет қаралды 14 М.
Migrating to Fabric | Tomasz Zawadzki, Krzysztof Piaskowy | App.js Conf
25:21
The Value of Source Code
17:46
Philomatics
Рет қаралды 52 М.
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 9 МЛН