Reputation: 781
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.
Upvotes: 7
Views: 4366
Reputation: 2788
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.
Upvotes: 30