DEPRECATED: This is for RNFB v5 only. For v6 onwards please follow the new projects guide.
A basic react native app with react-native-firebase
pre-integrated to get you started quickly.
DEPRECATED: This is for RNFB v5 only. For v6 onwards please follow the new projects guide.
If you're only developing for one platform you can ignore the steps below that are tagged with the platform you don't require.
git clone https://github.com/invertase/react-native-firebase-starter.git
cd react-native-firebase-starter
- cd into your newly created project directory.yarn
or npm install
You will need to be running Node version 7.6 or greater for the rename functionality to work
npm run rename
- you'll be prompted to enter a project name and company nameRN < 0.60.0
cd ios
and run pod install
- if you don't have CocoaPods you can follow these instructions to install it.Google Services
files (plist & JSON)add firebase to your app
instructions here to generate your GoogleService-Info.plist
file if you haven't done so already - use the package name generated previously as your iOS bundle ID
.ios/
directory of your project.
manually add firebase
to your app instructions here to generate your google-services.json
file if you haven't done so already - use the package name generated previously as your Android package name
.android/app/
directory of your project.info.plist
[iOS] and the AndroidManifest.xml
[Android] files. If you don't want to use AdMob, just remove it. If you do, be sure to update your ID!info.plist
by editing the GADApplicationIdentifier
key string.AndroidManifest.xml
by modifying the content of <meta-data />
tag within the <application />
tag.yarn run start
or npm start
from the root of your project.npm run ios
or yarn run ios
from the root of your project. The first build will take some time. This will automatically start up a simulator also for you on a successful build if one wasn't already started.npm run android
or yarn run android
from the root of your project.If all has gone well you'll see an initial screen like the one below.
This project exists thanks to all the people who contribute. [Contribute].
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]