React Native Firebase
    Preparing search index...
    • Returns a Reference representing the location in the Database corresponding to the provided path. If no path is provided, the Reference will point to the root of the Database.

      const db = getDatabase();

      // Get a reference to the root of the Database
      const rootRef = ref(db);

      // Get a reference to the /users/ada node
      const adaRef = ref(db, "users/ada");

      Parameters

      • db: FirebaseDatabaseTypes.Module

        The Database instance.

      • Optionalpath: string

        Optional path representing the location the returned Reference will point. If not provided, the returned Reference will point to the root of the Database.

      Returns FirebaseDatabaseTypes.Reference