React Native Firebase
    Preparing search index...
    • By calling keepSynced(true) on a location, the data for that location will automatically be downloaded and kept in sync, even when no listeners are attached for that location.

      const dbRef = ref(getDatabase(), 'users');
      await keepSynced(dbRef, true);

      Parameters

      • ref: FirebaseDatabaseTypes.Reference

        A location to keep synchronized.

      • bool: boolean

        Pass true to keep this location synchronized, pass false to stop synchronization.

      Returns Promise<void>