Back to course

The Codegen Process

React Native 2026: Bridgeless Architecture & JSI

Automated Native Code

Codegen is a tool that generates C++ glue code from your TypeScript definitions. This ensures type safety between JS and Native.

Workflow:

  1. Define an interface in TypeScript.
  2. Run the Codegen script.
  3. Implement the generated C++ or Java/Obj-C boilerplate.

This prevents runtime crashes caused by mismatched types.