From 2ac339d846f609cbe9dbf2210fb184f92cd00ac0 Mon Sep 17 00:00:00 2001 From: Michael Diarmid Date: Wed, 11 Oct 2017 01:59:11 +0100 Subject: [PATCH] [docs][Firestore] Update incorrect get example Fixes #488 --- docs/modules/firestore.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/modules/firestore.md b/docs/modules/firestore.md index 0fca6c13..f2480510 100644 --- a/docs/modules/firestore.md +++ b/docs/modules/firestore.md @@ -69,14 +69,16 @@ import firebase from 'react-native-firebase'; firebase.firestore() .doc('posts/posts1') - .get((documentSnapshot) => { +  .get() +  .then((documentSnapshot) => { const value = documentSnapshot.data(); }); firebase.firestore() .collection('posts') .doc('posts1') - .get((documentSnapshot) => { +  .get() +  .then((documentSnapshot) => { const value = documentSnapshot.data(); }); ```