Skip to content

Support new turbo module EventEmitter APIs with a new REACT_EVENT_EMITTER macro and matching spec codegen #13532

@jonthysell

Description

@jonthysell

Summary

The upstream RN codegen was updated to support a new kind of API for turbo modules called EventEmitters.

See: https://github.com/facebook/react-native/pull/44809/files#diff-b368b293fedfa28c87276b3c85052a3c717f1d99c05ae3a257ba0836131a2a40

We need to both create the macros that support these APIs and also update our codegen to generate the proper asserts in the spec to catch when they're not implemented.

Motivation

This is a new upstream feature that will be expected as of the 7/1 integrate (see #13508).

Basic Example

No response

Open Questions

No response

Metadata

Metadata

Assignees

Labels

Area: Turbo ModulesNew ArchitectureBroad category for issues that apply to the RN "new" architecture of Turbo Modules + FabricParity: React NativeRNW does not look or behave like upstream RN platformsenhancement

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions