Complete the code to import Firestore from Firebase in React Native.
import [1] from '@react-native-firebase/firestore';
The Firestore module is imported as firestore from @react-native-firebase/firestore.
Complete the code to get a reference to a Firestore collection named 'users'.
const usersCollection = firestore().[1]('users');
Use collection('users') to get a reference to the 'users' collection in Firestore.
Fix the error in the code to add a new document with data to the 'users' collection.
await firestore().collection('users').[1]({ name: 'Alice', age: 30 });
Use add() to create a new document with an auto-generated ID in a collection.
Fill both blanks to update the 'age' field of a user document with ID 'user123'.
await firestore().collection('users').[1]('user123').[2]({ age: 31 });
Use doc('user123') to get the document reference, then update() to change fields.
Fill all three blanks to delete a document with ID 'user456' from the 'users' collection.
await firestore().[1]('users').[2]('[3]').delete();
To delete a document, get the collection, then the document by ID, then call delete().