mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 17:42:24 +08:00
docs(analytics): update setAnalyticsCollectionEnabled example (#4027)
Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
This commit is contained in:
@@ -140,5 +140,7 @@ on the `firebase.json` file at the root of your project directory.
|
||||
To re-enable analytics (e.g. once you have the users consent), call the `setAnalyticsCollectionEnabled` method:
|
||||
|
||||
```js
|
||||
import { firebase } from '@react-native-firebase/analytics';
|
||||
// ...
|
||||
await firebase.analytics().setAnalyticsCollectionEnabled(true);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user