Implementing an Android TurboModule from Scratch
Автор: Callstack
Загружено: 2026-01-29
Просмотров: 334
Описание:
TurboModules aren’t iOS-only. In this episode of *Mastering React Native TurboModules*, Oskar Kwaśniewski shows how to implement a TurboModule on Android using Kotlin and the New Architecture.
Starting from a shared TypeScript spec, Oskar walks through Codegen output for Android, explains the generated base classes, and implements a Local Storage TurboModule step by step.
You’ll see how synchronous and asynchronous methods are represented on Android, how promises are resolved, and how to register the module so it’s available to JavaScript.
This episode is essential if you want feature parity between iOS and Android TurboModules, or if you’re implementing native functionality on Android for the first time.
What you’ll learn:
How Android TurboModules map to a TypeScript spec
What Codegen generates for Android
Implementing TurboModules in Kotlin
Sync vs async methods on Android
Registering TurboModules with React Native
Follow Callstack on X 🐦 https://x.com/callstackio
Chapters:
00:00 Introduction and Android focus
01:30 Revisiting the TypeScript spec
03:00 Codegen output for Android
06:00 Implementing the Kotlin TurboModule
10:30 Sync and async methods explained
14:00 Registering the TurboModule package
17:00 Testing from JavaScript
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: