WhoBuilt

When will the re-architecture (TurboModules, Fabric) rollout be available to the community?

Dec 6, 2021· 4 min· 1.2K views·Watch on YouTube

Speakers

An unnamed Callstack host, with Satya joining the discussion, explains the state of React Native’s TurboModules and Fabric rollout and how developers can use JSI in the meantime.

Community rollout timing

The host says React Native 0.67 planning had not yet included discussion of the new architecture. An iOS upgrade guide was being reviewed by partner companies, while the Android guide was still in progress, so an official rollout could be several months away.

Experimenting before official release

JSI was already available to explore, and TurboModules were running in RNTester, though they were not officially enabled for community use. The host describes them as partly released, but not yet ready for a supported rollout.

JSI libraries and debugging limits

The host says developers could build modules with JSI without waiting for TurboModules or Fabric to be enabled globally or per React view. Examples already using JSI included React Native Reanimated, React Native MMKV, and React Native VisionCamera. Chrome debugging was a limitation, while Flipper was available; Hermes could connect to Chrome DevTools.

Codegen is optional

The discussion describes Codegen as a way to generate C headers from TypeScript or Flow types, avoiding manual header work. The official script used Flow, and the host recalls a separate TypeScript implementation. Codegen was not required for JSI, and the host says the implementation was already in the repository’s master branch, though public documentation was unavailable.

Takeaways

  • Treat the official new architecture rollout as a multi-month prospect, based on the upgrade guides still being completed.
  • Teams can explore JSI-based modules now; the discussion names Reanimated, MMKV, and VisionCamera as examples.
  • Plan debugging around Flipper or Hermes-connected Chrome DevTools, since Chrome’s debugger has limitations with JSI.
  • Codegen can reduce manual C header work, but the discussion says it is optional and public documentation was not yet available.

Mentioned in this talk

Search inside this talk

What was claimed 7

  • feature
    TurboModules: Already running in the RNTester project, but not officially released.
    “TurboModules are already running there. So it’s not officially released”
    YouTube
    Unverified1 source· Talk
  • uses
    “There are already a lot of modules, like React Native Reanimated”
    YouTube
    Verified3 sources· Talk
  • feature
    JSI: Can be used to write native modules for apps without Codegen.
    “You can already write modules based on JSI and use them in your app.”
    YouTube
    Unverified1 source· Talk
  • uses
    “React Native VisionCamera”
    YouTube
    Verified4 sources· Talk
  • uses
    “React Native MMKV”
    YouTube
    Verified4 sources· Talk
  • feature
    Flipper: Can be used for debugging when the Chrome debugger is unavailable.
    “you won’t be able to use the Chrome debugger, but you can use the Flipper debugger.”
    YouTube
    Unverified1 source· Talk
  • feature
    code generation: Generates C headers from TypeScript or Flow types; it is optional for TurboModules and JSI.
    “Codegen generates C headers from those types”
    YouTube
    Unverified1 source· Talk

Related talks