6

I installed firebase like this in my react native project-->

yarn add @react-native-firebase/database

and then when I tried installing the pods based on the documentation with this command -->

cd ios/ && pod install && cd ..

I got the error below:

> [!] Invalid `Podfile` file:  [!] Invalid `RNFBDatabase.podspec` file:
> No such file or directory @ rb_sysopen - ../app/package.json.
Jonas
  • 121,568
  • 97
  • 310
  • 388
cldev
  • 671
  • 8
  • 18

1 Answers1

26

I've been at it for 2 days now, but I'm glad that I solved the problem. It was the missing dependency @react-native-firebase/app . The @react-native-firebase/database requires @react-native-firebase/app to be installed.

M_droid
  • 2,447
  • 2
  • 25
  • 35