Skip to content

[0.85] fix(ios): load RCTDefines.h first in React umbrella + drop submodule wildcard so RCT_* macros stay visible #1306

@wneel

Description

@wneel

Target Branch

0.85

Link to commit or PR to be picked

facebook/react-native#56862

Description

Same regression as the #1305 (0.84 pick): the new RCT_USE_PREBUILT_RNCORE=1 default plus use_frameworks! causes RCTDefines.h macros (RCT_EXTERN, RCT_EXPORT_METHOD, etc.) to be scoped to a sibling submodule and not propagate to consumers. Any pod relying on those macros (React Native Firebase: Auth, Storage, Messaging, Firestore) fails to compile under use_frameworks! on 0.85.

Fix reorders the React umbrella so RCTDefines.h is first and drops the module * { export * } wildcard in the modulemap, collapsing the React module into a single parse context. 2 files changed, 5 lines net.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions