Skip to content

SadmanYasar/react-native-firebase-typescript-starter

Repository files navigation

REACT NATIVE FIREBASE TYPESCRIPT STARTER

Supports Expo iOS Supports Expo Android

Experiment with Development Client in SDK 40.

🚀 How to use

npx create-react-native-app my-app -t with-dev-client

  • Run expo start --dev-client to try it out.
  • Install Firebase with expo install @react-native-firebase/app @react-native-firebase/firestore
  • Download the google-services.json (Android) and GoogleServices-Info.plist (IOS) from Firebase and put them in the root folder of the project
  • Put these files in .gitignore
  • Check if app.json has the following:
{
  "expo": {
    "android": {
      "googleServicesFile": "./google-services.json"
    },
    "ios": {
      "googleServicesFile": "./GoogleService-Info.plist"
    },
    "plugins": [
      "@react-native-firebase/app"
    ]
  }
}
  • Follow this to build with EAS

🏗 Build with EAS

You can easily use this project with EAS - just follow the steps below.

⚙️ Prepare project

  • adjust value of ios.bundleIdentifier and android.package in app.json
  • run eas build:configure

💪 Build whatever you want

This example comes with two pre-configured build types: release (a production version of your app - ready to be uploaded to stores), with-dev-client (a development version of your app that can be shared with your teammates).

To build the app with the dev client, just run eas build --profile with-dev-client.

Note: the with-dev-client uses the internal distribution on iOS. That's why, you need to add your device to be able to install the built app. To do it, you can use eas device:create.

For more information about EAS, check out documentation.

📝 Notes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published