Skip to content

Commit 743edf8

Browse files
authored
docs(perf, usage): add import statement to usage example (#4347)
Add import to make it consistent to the analytics screen (https://rnfirebase.io/analytics/usage#disable-auto-initialization)
1 parent 5db2463 commit 743edf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/perf/usage/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,7 @@ set the `perf_auto_collection_enabled` flag to `false`:
138138
To re-enable collection (e.g. once you have the users consent), call the `setPerformanceCollectionEnabled` method:
139139

140140
```js
141+
import {firebase} from '@react-native-firebase/perf';
142+
// ...
141143
await firebase.perf().setPerformanceCollectionEnabled(true);
142144
```

0 commit comments

Comments
 (0)