mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-06-17 23:15:37 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user