react-native-google-mobile-ads
    Preparing search index...

    Type Alias AdPoolProviderProps

    type AdPoolProviderProps = {
        children: React.ReactNode;
        enabled?: boolean;
        pools: AdPoolConfig[];
    }
    Index
    children: React.ReactNode
    enabled?: boolean

    When false, stops future pool creates; never destroys, cancels, or unregisters already-created pools. Mirrors hook autoLoad: set it false while something create depends on is still resolving (typically consent), then flip true to resume creates. Default true.

    pools: AdPoolConfig[]

    Pool configs to own for the provider lifetime (typically from AdPoolPresets).

    Reconciled by poolId, not by array identity: the provider creates pools for ids that appear, destroys pools for ids that disappear, and leaves existing pools untouched when only the array identity changed. A forgotten useMemo therefore cannot tear down and recreate native pools every render. useMemo is an optimization here, never a correctness requirement.

    Reusing a poolId with a different config replaces that pool, because the id is the identity.