Skip to main content

14.7.9 - tvOS, macOS & watchOS Support

· One min read
Hyo
React Native IAP Maintainer

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

PlatformMinimum Version
iOS15.0
tvOS15.0
macOS14.0
watchOS8.0
visionOS1.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