Skip to content

[0.84] Fix codegen for projects in hidden folders #1217

@dinisnunes1

Description

@dinisnunes1

Target Branch

0.84

Link to commit or PR to be picked

facebook/react-native@a12b442

Description

This fix addresses a silent build failure that produces broken apps on CI systems using hidden workspace paths (e.g., Jenkins with ~/.jenkins/workspace/).

Why this is a breaking issue:

  1. Builds succeed but apps are broken - No error is thrown; the build completes normally but third-party Fabric components (FlashList, Lottie, WebView, etc.) are not registered, causing runtime UI failures (components disappear, flicker, or render incorrectly).

  2. Difficult to diagnose - The root cause is buried in codegen's file discovery logic. The only symptom is broken UI on builds from specific CI environments.

  3. Affects common CI setups - Jenkins (one of the most popular CI tools) uses ~/.jenkins/workspace/ by default. This also affects any CI with hidden paths like
    ~/.buildkite/, ~/.circleci/, etc.

  4. New Architecture adoption blocker - Teams enabling Fabric may see this issue only on CI builds, making it a significant barrier to New Architecture adoption.

  5. Minimal risk fix - The change is a one-line modification to the hidden folder detection logic, with no side effects on other functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    Status

    Done / Picked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions