Native iOS Module in React Native using Swift

Опубликовано: 12 Сентябрь 2024
на канале: Unsure Programmer
36k
660

Learn How to create a Native Module in iOS using swift.

Complete Courses:
React Native:
Flutter:

Resources :
Official Docs:
Tutorial Ref:

Project Files :

Chapters
00:00 - Introduction
00:13 - Project Setup React Native
00:45 - Xcode New Swift File
01:30 - Bridging Header
02:20 - 1. Counter Module - increment()
03:32 - Export Module and Method to react native
05:25 - Import Native module in React Native
06:25 - 2. requiresMainQueueSetup()
07:19 - 3. constantsToExport() - Exporting Constants
08:16 - 4. pass data from Native to JS using callback - RCTResponseSenderBlock
09:50 - 5. Returning data as Promise from Native to JS
13:47 - 6. Emitting Events from Native to JS - RCTEventEmitter

Was it helpful?
Support :

Twitter
Instagram
Facebook
Contact unsureprogrammer