We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b4d70 commit c2291a1Copy full SHA for c2291a1
docs/firestore/emulator.md
@@ -31,11 +31,13 @@ You need to configure the following property as soon as possible in the startup
31
import '@react-native-firebase/app';
32
import firestore from '@react-native-firebase/firestore';
33
34
-const db = firestore();
35
-
36
-// set the host property to connect to the emulator
+// set the host and the port property to connect to the emulator
37
// set these before any read/write operations occur to ensure it doesn't affect your Cloud Firestore data!
38
-db.settings({ host: 'localhost:8080', ssl: false });
+if (__DEV__) {
+ firestore().useEmulator('localhost', 8080);
+}
39
+
40
+const db = firestore();
41
```
42
43
# Clear locally stored emulator data
0 commit comments