Skip to content

[iOS] Build failure: undeclared identifier 'RNSBottomTabsScreenComponentView' on 4.24.0 (Fabric) #3682

@vurhd

Description

@vurhd

Description

After upgrading to react-native-screens 4.24.0, iOS builds fail with undeclared identifier errors for RNSBottomTabsScreenComponentView and RNSBottomTabsHostComponentView. Android builds succeed. The app does not use native bottom tabs.

Error

- use of undeclared identifier 'RNSBottomTabsScreenComponentView'
- use of undeclared identifier 'RNSBottomTabsHostComponentView'
- unknown type name 'RNSBottomTabsScreenComponentView'; did you mean 'RNSTabsScreenComponentView'?
- unknown type name 'RNSBottomTabsScreenComponentView'; did you mean 'RNSTabsScreenComponentView'?
- unknown type name 'RNSBottomTabsHostComponentView'; did you mean 'RNSTabsHostComponentView'?
- unknown type name 'RNSBottomTabsHostComponentView'; did you mean 'RNSTabsHostComponentView'?

The Xcode build fails during the "Run fastlane" step in the Xcode build process. The errors suggest RNSBottomTabsScreenComponentView and RNSBottomTabsHostComponentView are referenced by the Fabric component provider but their implementations are not being compiled.

Steps to reproduce

  1. Use react-native-screens 4.24.0 with New Architecture (Fabric) enabled
  2. Build for iOS
  3. Xcode fails during compilation with the above errors

Expected behavior

iOS build should succeed as it did on 4.23.0.

Workaround

Pin react-native-screens to 4.23.0.

Environment

  • react-native-screens: 4.24.0
  • react-native: 0.81.6
  • expo: 54.0.33
  • @react-navigation/bottom-tabs: 7.14.0
  • New Architecture (Fabric): enabled
  • Platform: iOS (Android builds fine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-infoThe user didn't precise the problem enoughmissing-reproThis issue need minimum repro scenarioplatform:androidIssue related to Android part of the libraryplatform:iosIssue related to iOS part of the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions