14.7.9 - tvOS, macOS & watchOS Support
· One min read
react-native-iap 14.7.9 adds official support for tvOS, macOS, and watchOS platforms, along with listener timing bug fixes.
New Features
Multi-Platform Support
| Platform | Minimum Version |
|---|---|
| iOS | 15.0 |
| tvOS | 15.0 |
| macOS | 14.0 |
| watchOS | 8.0 |
| visionOS | 1.0 |
Platform Detection Helpers
import {isTVOS, isMacOS, isStandardIOS, isNitroReady} from 'react-native-iap';
isTVOS(); // true on Apple TV
isMacOS(); // true on macOS (native or Catalyst)
isStandardIOS(); // true on iPhone/iPad only
isNitroReady(); // true when Nitro module is initialized
Bug Fixes
Listener Registration Timing
Fixed an issue where onPurchaseSuccess callbacks were not being called consistently. Listeners are now registered after initConnection() completes.
Unmount Guard
Added isMountedRef guard to prevent listener leaks on early component unmount.
Installation
yarn add react-native-iap@14.7.9
