Skip to content

Commit cc3db67

Browse files
authored
docs(crashlytics, expo): warn that expo-dev-client blocks reporting (#8562)
add warning about expo-dev-client preventing native crash reporting to Firebase
1 parent f0a0292 commit cc3db67

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Integration with Expo is possible when using a [development build](https://docs.
2626

2727
_NOTE:_ React Native Firebase cannot be used in the pre-compiled [Expo Go app](https://docs.expo.dev/workflow/overview/#expo-go-an-optional-tool-for-learning) because React Native Firebase uses native code that is not compiled into Expo Go.
2828

29+
> **Warning:** If you are using `expo-dev-client`, native crashes (such as those triggered by `crashlytics().crash()`) will **not** be reported to Firebase Crashlytics during development. This is because `expo-dev-client` provides a custom error overlay that catches and displays errors before they are sent to Firebase. To test native crash reporting, you must remove `expo-dev-client` and run your app in a standard release or debug build without the custom error overlay.
30+
2931
To create a new Expo project, see the [Get started](https://docs.expo.dev/get-started/create-a-project/) guide in Expo documentation.
3032

3133
### Install React Native Firebase modules
@@ -270,10 +272,10 @@ However, you only want to do this for the web platform. For non-web / native app
270272
At some point during your application's bootstrap processes, initialize firebase like this:
271273

272274
```javascript
273-
import { getApp, initializeApp } from '@react-native-firebase/app';
275+
import { getApp, initializeApp } from "@react-native-firebase/app";
274276

275277
// web requires dynamic initialization on web prior to using firebase
276-
if (Platform.OS === 'web') {
278+
if (Platform.OS === "web") {
277279
const firebaseConfig = {
278280
// ... config items pasted from firebase console for your web app here
279281
};

0 commit comments

Comments
 (0)