https://github.com/sadmanyasar/react-native-firebase-typescript-starter
https://github.com/sadmanyasar/react-native-firebase-typescript-starter
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sadmanyasar/react-native-firebase-typescript-starter
- Owner: SadmanYasar
- Created: 2023-08-21T21:47:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-22T01:46:51.000Z (about 2 years ago)
- Last Synced: 2024-04-16T17:38:08.107Z (over 1 year ago)
- Language: Java
- Size: 635 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REACT NATIVE FIREBASE TYPESCRIPT STARTER
![]()
![]()
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:
```sh
{
"expo": {
"android": {
"googleServicesFile": "./google-services.json"
},
"ios": {
"googleServicesFile": "./GoogleService-Info.plist"
},
"plugins": [
"@react-native-firebase/app"
]
}
}
```
- Follow [this](https://www.youtube.com/watch?v=LUFHXsBcW6w&t=217s) 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](https://docs.expo.dev/eas/).**
## 📝 Notes
- [Development Client docs](https://docs.expo.dev/clients/introduction/)