Skip to content

[BUG]: Version 7.0.0-beta-9 not compatible with react-native-nitro-image #4912

Description

@Pycode0007

What happened?

After upgrading to the latest react-native-video, the iOS build fails when
react-native-nitro-image is present in the project. The project builds successfully before
installing/upgrading react-native-video. The failure occurs in the generated Nitro code during
compilation of ReactNativeVideo sources.

Build error

ReactNativeVideo-Swift-Cxx-Bridge.cpp
error 'ResizeMode.hpp' file not found
/ReactNativeVideo/nitrogen/generated/ios/ReactNativeVideo-Swift-Cxx-Bridge.cpp

Additional failures while compiling ReactNativeVideoAutolinking.mm and
ReactNativeVideo-Swift-Cxx-Bridge.cpp. The generated C++ bridge cannot locate ResizeMode.hpp.

Additional notes

  • New Architecture is enabled.
  • Appears related to generated Nitro code and header search paths.
  • Downgrading/removing react-native-video avoids the issue.
  • The error originates from node_modules/react-native-video/nitrogen/generated/ios/.

Could this be a compatibility issue between react-native-video's Nitro-generated code and
react-native-nitro-image, or a missing generated/header dependency in the latest release?

Steps to reproduce

  1. Create a new React Native 0.84.1 project.
  2. Install react-native-nitro-image.
  3. Install the latest react-native-video.
  4. Run cd ios && pod install.
  5. Build the iOS application - it fails with error 'ResizeMode.hpp' file not found.

Reproduction repository

No response

react-native-video version

7.0.0-beta.9

react-native version

0.84.1

react-native-nitro-modules version

No response

Platforms

iOS

OS version

No response

Device

No response

Architecture

New Architecture

Expo

No response

Last working version

No response

Media / source type

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions