mirror of
https://github.com/zhigang1992/react-native-firebase-starter.git
synced 2026-01-12 22:50:21 +08:00
47d74ba5c2516cb83b7d6e9424bd5ca09fcff33b
React Native Firebase Starter
A basic react native app with react-native-firebase pre-integrated to get you started quickly.
Getting Started
If you're only developing for one platform you can ignore the steps below that are tagged with the platform you don't require.
1) Clone & Install Dependencies
- 1.1)
git clone https://github.com/invertase/react-native-firebase-starter.git - 1.2)
cd react-native-firebase-starter- cd into your newly created project directory. - 1.3) Install NPM packages with your package manager of choice - i.e run
yarnornpm install - 1.4) [iOS]
cd iosand runpod install- if you don't have CocoaPods you can follow these instructions to install it. - 1.5) [Android] No additional steps for android here.
2) Add Google Services files (plist & JSON)
- 2.1) [iOS] Follow the
add firebase to your appinstructions here to generate yourGoogleService-Info.plistfile if you haven't done so already. Place this file in theios/directory of your project. - 2.2) [Android] Follow the
manually add firebaseto your app instructions here to generate yourgoogle-services.jsonfile if you haven't done so already. Place this file in theandroid/app/directory of your project.- The current package name is set to
com.rnfirebasestarter
- The current package name is set to
3) Start your app
- 3.1) Start the react native packager, run
yarn run startornpm run startfrom the root of your project. - 3.2) [iOS] Build and run the iOS app, run
react-native run-iosfrom 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. - 3.3) [Android] If you haven't already got an android device attached/emulator running then you'll need to get one running (make sure the emulator is with Google Play / APIs). When ready run
react-native run-androidfrom the root of your project.
If all has gone well you'll see an initial screen like the one below.
Screenshots
Contributors
This project exists thanks to all the people who contribute. [Contribute].
Backers
Thank you to all our backers! 🙏 [Become a backer]
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
License
- See LICENSE
Description
Languages
JavaScript
49.5%
Objective-C
20.1%
Java
16.7%
Starlark
8.9%
Ruby
4.8%
