fix(useIAP): forward PurchaseOptions in getAvailablePurchases and res… (#3173)
…torePurchases The hook's getAvailablePurchases and restorePurchases methods were hardcoding PurchaseOptions (alsoPublishToEventListenerIOS, onlyIncludeActiveItemsIOS), making it impossible for hook consumers to customize these values. This change adds an optional PurchaseOptions parameter to both methods, defaulting to the previous behavior for backward compatibility. Related to hyochan/expo-iap#329 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added optional configuration options to purchase retrieval methods for greater control over which purchases are included in results. * New platform-specific settings available: iOS can filter active items and control event listener publishing; Android can include or exclude suspended purchases. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
H
Hyo committed
de94e83c428c2ca02f5258f2cb9d3befe165afc2
Parent: 1bbbbae
Committed by GitHub <noreply@github.com>
on 3/25/2026, 8:27:54 AM