Skip to content

friedice5467/RNCliFirebaseTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native CLI Firebase Template

This is a react native template for quickly spinning up a react native typescript + firebase project.

Prerequisites

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

Using This Template

Create a New 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.

Set up Firebase

After creating your project, you'll need to configure Firebase:

  1. Navigate to your Firebase project in the Firebase Console.
  2. Go to Project Settings.
  3. Under the "General" tab, download the google-services.json for Android and place it in the android/app directory of your new project.
  4. For iOS, download the GoogleService-Info.plist and use Xcode to include it in your project.

Install Dependencies

Navigate to your project directory and install the necessary dependencies:

cd MyNewProject
npm install

Running Your App

Android

npx react-native run-android

iOS (macOS only)

npx react-native run-ios

License

This project is licensed under the MIT License - see the LICENSE file for details.