Error given:
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
@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.