docs(crashlytics): add note about required module import (#2921)

* Update quick-start.md
* Update quick-start.md
Co-authored-by: Mike Hardy <github@mikehardy.net>
This commit is contained in:
Andréas Hanss
2020-01-30 12:50:28 +01:00
committed by GitHub
parent b5243cf25a
commit 25a4f55f8c

View File

@@ -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