React Native Firebase
    Preparing search index...
    • Sets whether persistence is enabled for all database calls for the current app instance.

      Ensure this is called before any database calls are performed, otherwise persistence will only come into effect when the app is next started.

      const db = getDatabase();
      setPersistenceEnabled(db, true);

      async function bootstrap() {
      // Bootstrapping application
      const snapshot = await ref(db, "settings").once("value");
      }

      Parameters

      Returns void