From 25a4f55f8cd78273bc79ebc2aae42df8d3f62fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9as=20Hanss?= Date: Thu, 30 Jan 2020 12:50:28 +0100 Subject: [PATCH] docs(crashlytics): add note about required module import (#2921) * Update quick-start.md * Update quick-start.md Co-authored-by: Mike Hardy --- docs/crashlytics/quick-start.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/crashlytics/quick-start.md b/docs/crashlytics/quick-start.md index 5bb311fa..e3ec9052 100644 --- a/docs/crashlytics/quick-start.md +++ b/docs/crashlytics/quick-start.md @@ -53,6 +53,14 @@ Once installed, import the Crashlytics package into your project: import crashlytics from '@react-native-firebase/crashlytics'; ``` +You need to import the library even if you're not using any functions of the Crashlytics SDK. By doing this, you enable the listener that get the JS stacktrace into the Crash Reporting console in Firebase + +Consider putting this in `index.js` file. + +```js +import '@react-native-firebase/crashlytics'; +``` + The package also provides access to the firebase instance: ```js