ignite-firebase
v1.0.0
Published
An Ignite plugin for react-native-firebase
Downloads
28
Readme
Ignite Firebase Plugin
THIS PLUGIN IS STILL IN VERY EARLY STAGE. USE AT OWN RISK.
This plugin adds react-native-firebase to your Ignite React Native project and configures it so it works out of the box with Ignite projects.
Compatibility
This version supports react-native-firebase v6
and therefore is only compatible with react-native 0.60.0+
Usage
First get the credentials files from https://console.firebase.google.com/ as stated in:
- Android: https://invertase.io/oss/react-native-firebase/quick-start/android-firebase-credentials
- iOS: https://invertase.io/oss/react-native-firebase/quick-start/ios-firebase-credentials\n
And put them:
google-services.json
inandroid/app/
GoogleService-Info.plist
inios/YourApp/
❌ DO NOT modify the native files, this plugin will take care of it ⚠️
Adding Firebase
Then:
ignite add firebase
You can also pass some information directly as CLI paramaters when adding the plugin:
--config-files-setup
: Use if you already set the google-services.json and GoogleService-Info.plist in your project--modules
: Firebase modules to install, to select in:AdMob
Analytics
Authentication
Cloud Firestore
Cloud Functions
Cloud Messaging
Cloud Storage
Crashlytics
Dynamic Links
In-app Messaging
Instance ID
ML Kit Natural Language
ML Kit Vision
Performance Monitoring
Realtime Database
Remote Config
Examples:
ignite add firebase --modules=Analytics,"Cloud Functions"
ignite add firebase --modules=all
ignite add firebase --modules=Crashlytics --config-files-setup
You can get this information by using:
ignite add firebase --help
Removing Firebase
ignite remove firebase
Same here, you can use CLI parameters to convey some information:
--remove-config-files
: Use if you want to remove the google-services.json and GoogleService-Info.plist files--modules
: Firebase modules to remove, see above for more examples
You can get this information by using:
ignite remove firebase --help
Contributing
- Clone this repo
- Run
npm install
- Run
npm test
- Check out a branch and make your changes
- Write tests for those changes
- Submit a pull request back upstream to dev
License
- MIT