Getting to the Native in React Native
summary
Explains how native modules actually work: RCT_EXPORT_MODULE and RCT_EXPORT_METHOD enable a JavaScript call to invoke Objective‑C/Java that makes the phone vibrate; examples show callbacks, promises, events and exporting constants with no bridge roundtrip. Shows Swift and Kotlin setup (include bridging file or Gradle Kotlin plugin), how to inject initialProps on Android via a custom ReactActivityDelegate, and practical build fixes: Gradle dependency resolution, CocoaPods vs manual linking, and using react-native-scheme-manager to sync Xcode targets.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 2:11Native modules
- 9:41Custom native views
- 11:09Exporting constants
- 12:32Swift and Kotlin
- 15:01Extending native modules
- 16:30Initial app properties
- 20:24Build errors and fixes
- 22:10Swift and Android issues
- 23:53Gradle errors and dependencies
- 26:10Dependency versioning
- 28:58Build hacks
- 30:27CocoaPods setup
- 31:49Build versions and targets
- 34:13Xcode scheme setup
- 35:39Module scheme management
- 36:40Conclusion and Q&A
related talks
22mThe great Divide: Bridging Native Modules And React Native
45mThe Dark Art of Native APIs
34mReact Native - Under The Bridge
27mBuilding high quality mobile apps with React Native
53mHow React-Native shapes the way we think about native apps
50mWhy React Native Android Works
29mBuilding React Native
36mInside React Native's New Architecture: Fabric, TurboModule…
