Skip to content

@react-native-firebase/[email protected] is not compatible with Expo SDK 54 (React Native 0.81.4) #8721

@jaziracapital-ops

Description

@jaziracapital-ops

Issue

When using Expo SDK 54 (React Native 0.81.4) with @react-native-firebase/[email protected], the iOS build fails during compilation with the following error:

❌ (/Users/ajcstudio/Desktop/Projects/tcom-app/node_modules/@react-native-firebase/app/ios/RNFBApp/RCTConvert+FIRApp.h:19:9)

17 |
18 | #import <FirebaseCore/FirebaseCore.h>

19 | #import <React/RCTConvert.h>
| ^ include of non-modular header inside framework module 'RNFBApp.RCTConvert_FIRApp': '/Users/ajcstudio/Desktop/Projects/tcom-app/node_modules/react-native/React/Base/RCTConvert.h'

This error occurs when building with EAS (Expo Application Services) in a prebuild project.
The project cannot modify native iOS code manually due to being an Expo-managed (prebuild) app.

After testing, downgrading to older versions such as @react-native-firebase/[email protected] resolves the issue, suggesting that versions >21.x.x are not compatible with Expo SDK 54 / React Native 0.79.x.

Project Files
Javascript

Click To Expand

package.json: { "dependencies": { "@notifee/react-native": "^9.1.8", "@react-native-community/async-storage": "^1.12.1", "@react-native-firebase/app": "^23.4.0", "@react-native-firebase/messaging": "^23.4.0", "expo": "~54.0.0", "react-native": "0.81.4" } }

firebase.json:
{}

iOS
Click To Expand

ios/Podfile:

I'm not using Pods

I'm using Pods and my Podfile looks like:

require File.join(File.dirname(node --print "require.resolve('expo/package.json')"), "scripts/autolinking")
require 'json'

platform :ios, '13.0'

use_expo_modules!

AppDelegate.m:
// Managed by Expo (cannot modify natively)

Android
Click To Expand

my application is an AndroidX application

I am using android/gradle.settings jetifier=true

I am using the NPM package jetifier

android/build.gradle:
// Managed by Expo prebuild

android/app/build.gradle:
// Managed by Expo prebuild

Environment
Click To Expand

react-native info output:

System:
OS: macOS 14.7
CPU: (8) arm64 Apple M1
Binaries:
Node: 20.x
Yarn: 1.22.x
npm: 10.x
SDKs:
iOS SDK: 17.0
npmPackages:
"@react-native-firebase/app": 23.4.0
"expo": 54.0.0
"react-native": 0.81.4

Platform that you're experiencing the issue on:

iOS

Android

Both

react-native-firebase version you're using that has this issue:

23.4.0

Firebase module(s) you're using that has the issue:

app

Are you using TypeScript?

N

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions