From fa5d0d780f0fea86ab9f72504ee7450b4a8738f8 Mon Sep 17 00:00:00 2001 From: Anderson Addo <34724755+andersonaddo@users.noreply.github.com> Date: Fri, 28 Aug 2020 13:51:32 -0700 Subject: [PATCH] docs: Added react-native-clean-project and template app script to tips docs (#4170) * Added react-native-clean-project and template app script to tips docs * Update faqs-and-tips.md --- docs/faqs-and-tips.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/faqs-and-tips.md b/docs/faqs-and-tips.md index 2a07fc1417..01538af51a 100644 --- a/docs/faqs-and-tips.md +++ b/docs/faqs-and-tips.md @@ -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": { @@ -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)