React-native-firebase: "RNFirebase core module was not found natively on iOS" (Expo issue?)

Created on 30 Oct 2017  路  3Comments  路  Source: invertase/react-native-firebase

Issue

Error given:

image

I have followed the whole iOS setup guide at https://rnfirebase.io/docs/v3.0.*/installation/ios successfully (until no errors or warnings were shown). Later when importing react-native-firebase in a module, I get the error shown above. I figured this might have to do with me using Expo via create-react-native-app.

This is my Podfile:

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'testapp' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for testapp

  # Required by RNFirebase
  pod 'Firebase/Core'
  pod 'Firebase/Auth'
  pod 'Firebase/Storage'
  pod 'Firebase/Firestore'

  target 'testapp-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'testappTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

Environment

  1. Application Target Platform: iOS

  1. Development Operating System: macOS Sierra

  1. Build Tools: n/a

  1. React Native version: 0.48.4

  1. RNFirebase Version: 3.0.5

  1. Firebase Module: Core, Auth, Storage, Firestore

All 3 comments

@NordlingArt - Expo does not support native modules. In order to use RNFirebase you will need to eject your Expo app.

Hi @chrisbianca! I am having this same issue on android: "RNFirebase core module was not found natively on Android".

My question is, how will I be able to write react-native code and debug/test it after I eject the expo app... ? Because the QR code will no longer be available.

@smititelu This is a limitation of Expo and the libraries it can work with. You will need to use Android Studio / XCode in order to debug and test once you have ejected.

Was this page helpful?
0 / 5 - 0 ratings