Update quick-start.md

This commit is contained in:
Elliot Hesp
2019-08-21 10:12:38 +01:00
committed by GitHub
parent 6d81cf8129
commit 17a9f10ab4

View File

@@ -39,10 +39,10 @@ import remoteConfig from '@react-native-firebase/remote-config';
async function getValues() {
try {
const activated = await config().fetchAndActivate();
const activated = await remoteConfig().fetchAndActivate();
if (activated) {
const experimentalFeatureEnabled = await config().getValue('experiment');
const experimentalFeatureEnabled = await remoteConfig().getValue('experiment');
console.log('Experimental source: ', experimentalFeatureEnabled.source);
console.log('Experimental value: ', experimentalFeatureEnabled.value);
}
@@ -62,7 +62,7 @@ have been fetched and activated, it is recommended you set default values using
import remoteConfig from '@react-native-firebase/remote-config';
async function bootstrap() {
await config().setDefaults({
await remoteConfig().setDefaults({
experiment: false,
});
}
@@ -77,7 +77,7 @@ which are applied in a production application. This can be done with the `setCon
import remoteConfig from '@react-native-firebase/remote-config';
async function bootstrap() {
await config().setConfigSettings({
await remoteConfig().setConfigSettings({
isDeveloperModeEnabled: __DEV__,
});
}