Skip to content

@datadog/mobile-react-native-session-replay v2.10.0 Incompatible with React Native 0.80.x due to missing Folly headers #946

Description

@manuelcaru

Describe the bug

When integrating Datadog v2.10.0 with React Native 0.80.1, the iOS build process fails due to missing Folly header files, specifically folly/coro/Coroutine.h. This header and its parent directory (coro) no longer exist in RCT-Folly versions supplied with modern React Native (0.73 and later). As a result, compilation fails with errors like "file not found: folly/coro/Coroutine.h".

It appears the Datadog SDK currently depends on a Folly structure that is no longer present in the latest React Native ecosystem.

Reproduction steps

  1. Create a new React Native app with version 0.80.1 (or any version >=0.73).
  2. Setup and install @datadog/mobile-react-native v2.10.0.
  3. Install @datadog/mobile-react-native v2.10.0 and follow the SDK installation instructions for iOS.
  4. Run pod install in the ios/ directory.
  5. Build the app for iOS (via Xcode or react-native run-ios).

SDK logs

No response

Expected behavior

The app builds successfully.

Affected SDK versions

React Native: 0.80.1, Datadog React Native SDK: 2.10.0 RCT-Folly: 2024.11.18.00

Latest working SDK version

This is the first time implementing @datadog/mobile-react-native-session-replay

Did you confirm if the latest SDK version fixes the bug?

Yes

Integration Methods

Yarn

React Native Version

0.80.1

Package.json Contents

React Native version: 0.80.1
@datadog/mobile-react-native: 2.10.0
@datadog/mobile-react-native-session-replay: 2.10.0
Xcode: 16.4
Podfile includes RCT-Folly version: 2024.11.18.00 (auto installed by React Native)

iOS Setup

No response

Android Setup

No response

Device Information

No response

Other relevant information

Actual behaviour

The build fails with errors such as:

Pods/Headers/Public/RCT-Folly/folly/Expected.h:1587:10 'folly/coro/Coroutine.h' file not found

and that the coro directory or file does not exist in RCT-Folly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions