This script automates the integration of 'react-native-firebase' package.
Due to EventEmitter deprecation in React Native v0.48, Please click here for a fix.
npm i react-native-configure-firebase --save
var configureFirebase = require('react-native-configure-firebase');
configureFirebase(action, version);
options:
-
action - either 'link', 'unlink' or 'bundle'.
-
version - the desired firebase packages version to use.
-
Download the script and put it in the root folder of your react native project.
-
Add this line to the 'scripts' section of your package.json file:
"configure-firebase": "node configure-firebase.js"
You have several options:
-
'npm run configure-firebase link'.
-
'npm run configure-firebase unlink'.
-
'npm run configure-firebase bundle' - this runs the 'bundle-ios' script so you'll be ready to check the integration on a device.
When you run the script, it installs all its dependencies and presents a menu so you can select the desired features you wish to use in your app.
If this project help you reduce time to develop, you can give me a cup of coffee :)