Skip to content

Commit

Permalink
docs: Added react-native-clean-project and template app script to tip…
Browse files Browse the repository at this point in the history
…s docs (#4170)

* Added react-native-clean-project and template app script to tips docs
* Update faqs-and-tips.md
  • Loading branch information
andersonaddo committed Aug 28, 2020
1 parent 81c4e3b commit fa5d0d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/faqs-and-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ We highly recommend taking the necessary pains to update to v6.
### My CI build hangs at the "Running script '[CP-User] [RNFB] Core Configuration'" step.

This may be fixed by creating a `firebase.json` file at the root of your project if it's not there already. If you don't want to change any of the default React Native Firebase configurations, you can leave it empty in the following way:

```
{
"react-native": {
Expand All @@ -38,5 +39,8 @@ This happens to be a known problem with the upstream Analytics SDKs. The Firebas

# Tips

- Whenever you face a strange issue (or an issue that causes build errors), there are two things you should always consider.
- Build processes are costly and complex, so caching is used a lot. As a result, certain changes that you make in your app can cause cache conflicts in subsequent builds. Deal with this via `npx react-native-clean-project`. This does solve a lot of problems.
- Try an isolate the problem with a template React Native Firebase app. This [bash script](https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh) is particularly helpful in making an empty template app.
- Advice on supporting multiple environments (for example, dev, prod, maybe also staging, qa) for your React Native Firebase App: [#3504](https://github.com/invertase/react-native-firebase/issues/3504)
- Using [Fastlane for iOS deployment](https://docs.fastlane.tools/getting-started/ios) together with [RN Firebase Crashlytics](https://rnfirebase.io/crashlytics/usage) within CI has been observed to cause builds that hang indefinitely. Using `setup_ci(force: true)` before building the application may solve the issue.: [#3706](https://github.com/invertase/react-native-firebase/issues/3706)

0 comments on commit fa5d0d7

Please sign in to comment.