Overview
The React Native Firebase Starter is a basic react native app that comes pre-integrated with react-native-firebase. It is designed to help developers get started quickly with their react native projects.
Features
- Pre-integrated with react-native-firebase
- Allows for easy cloning and installation of dependencies
- Provides instructions for renaming the project and setting up Firebase
- Includes pre-installed AdMob functionality
Installation
- Clone the repository by running the following command:
git clone https://github.com/invertase/react-native-firebase-starter.git - Navigate to the project directory:
cd react-native-firebase-starter - Install the necessary NPM packages using either yarn or npm:
yarnornpm install - Rename the project by running the command:
npm run renameand follow the prompts to enter a project name and company name - For iOS, navigate to the ios directory and run
pod installto install CocoaPods - Follow the instructions provided by Firebase to generate the GoogleService-Info.plist and google-services.json files for iOS and Android respectively. Place these files in the appropriate directories within the project.
- Set up AdMob by removing or changing the AdMob App ID in the info.plist file for iOS and the AndroidManifest.xml file for Android.
- Start the app by running
yarn run startornpm startto start the React Native packager. For iOS, build and run the app usingnpm run iosoryarn run ios.
Summary
The React Native Firebase Starter provides a basic starting point for developers looking to integrate react-native-firebase into their react native projects. It includes pre-installed functionality such as AdMob and provides clear installation and setup instructions to help developers get started quickly.