This is a react native template for quickly spinning up a react native typescript + firebase project.
Before you begin, ensure you have the following installed:
- Node.js (https://nodejs.org/)
- Watchman (for macOS users)
- Android Studio or Xcode (for iOS development, macOS only)
- An active Firebase project
To create a new React Native project using this template, run the following command:
npx react-native init MyNewProject --template https://github.com/friedice5467/RNCliFirebaseTemplate.git
Replace MyNewProject
with your desired project name.
After creating your project, you'll need to configure Firebase:
- Navigate to your Firebase project in the Firebase Console.
- Go to Project Settings.
- Under the "General" tab, download the
google-services.json
for Android and place it in theandroid/app
directory of your new project. - For iOS, download the
GoogleService-Info.plist
and use Xcode to include it in your project.
Navigate to your project directory and install the necessary dependencies:
cd MyNewProject
npm install
npx react-native run-android
npx react-native run-ios
This project is licensed under the MIT License - see the LICENSE file for details.