react-native-iap

react-native native module for In App Purchase.

MIT License

Downloads
202.5K
Stars
2.7K
Committers
232

Bot releases are hidden (Show)

react-native-iap - 10.1.1

Published by andresesfm about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/dooboolab/react-native-iap/compare/10.1.0...10.1.1

react-native-iap - 11.0.0-rc.2

Published by andresesfm about 2 years ago

react-native-iap - 11.0.0-rc.1

Published by andresesfm about 2 years ago

What's Changed

Full Changelog: https://github.com/dooboolab/react-native-iap/compare/11.0.0-beta.1...11.0.0-rc.1

react-native-iap - 11.0.0-beta.1

Published by andresesfm about 2 years ago

react-native-iap - 11.0.0-alpha.7

Published by andresesfm about 2 years ago

It now defaults to use Sk2 if available (iOS is > 15)

What's Changed

Full Changelog: https://github.com/dooboolab/react-native-iap/compare/11.0.0-alpha.6...11.0.0-alpha.7

react-native-iap - 10.1.0

Published by andresesfm about 2 years ago

react-native-iap - 10.0.7

Published by andresesfm about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/dooboolab/react-native-iap/compare/10.0.6...10.0.7

react-native-iap - 10.0.6

Published by andresesfm about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/dooboolab/react-native-iap/compare/10.0.5...10.0.6

react-native-iap - 10.0.5

Published by andresesfm about 2 years ago

react-native-iap - 10.0.4

Published by andresesfm about 2 years ago

What's Changed

Full Changelog: https://github.com/dooboolab/react-native-iap/compare/10.0.3...10.0.4

react-native-iap - 11.0.0-alpha.6

Published by andresesfm about 2 years ago

Same as 11.0.0-alpha.2

react-native-iap - 11.0.0-alpha.5

Published by andresesfm about 2 years ago

Same as 11.0.0-alpha.2

react-native-iap - 11.0.0-alpha.4

Published by andresesfm about 2 years ago

Same as 11.0.0-alpha.2 testing publishing

react-native-iap - 11.0.0-alpha.3

Published by andresesfm about 2 years ago

Same as 11.0.0-alpha.2, testing publishing to npm

react-native-iap - 11.0.0-alpha.2

Published by andresesfm about 2 years ago

Restored the ability to keep using older versions of iOS

What's Changed

Full Changelog: https://github.com/dooboolab/react-native-iap/compare/11.0.0-alpha.1...11.0.0-alpha.2

react-native-iap - 10.0.3

Published by andresesfm about 2 years ago

react-native-iap - 10.0.2

Published by andresesfm about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/dooboolab/react-native-iap/compare/10.0.1...10.0.2

react-native-iap - 11.0.0-alpha.1

Published by andresesfm about 2 years ago

Storekit 2 implementation. In order to activate, import and call storeKit2() before calling initConnection()

react-native-iap - 10.0.1

Published by andresesfm about 2 years ago

react-native-iap - 10.0.0

Published by andresesfm about 2 years ago

Breaking changes

  • You can't use default export to access method, you need to import it from the object import RNIap from 'react-native-iap'; -> import {getProducts} from 'react-native-iap';

  • The hook no longer export requestPurchase and requestSubscription, they should be import directly from import { requestPurchase } from 'react-native-iap';

  • purchaseHistories and setPurchaseHistories has been renamed to purchaseHistory and setPurchaseHistory to match the original methods

  • All the exposed methods are now taking an object of parameters, rather than named params. e.g. requestSubscription('com.example.sub', false) -> requestSubscription({ sku: 'com.example.sub', andDangerouslyFinishTransactionAutomaticallyIOS: false })

  • requestPurchasetakes an array of Sku for Android, and a single Sku for iOS

  • Remove the InAppPurchase type, which was already defined as ProductPurchase

  • IapError has been renamed to PurchaseError and is now extending an Error class. It can be used as follow:

try {
  requestPurchase(...)
} catch (error) {
  if (error instance PurchaseError) {
    // error.code, error.message, error.productId, error.debugMessage
  }
}

Full Changelog: https://github.com/dooboolab/react-native-iap/compare/9.0.4...10.0.0

Package Rankings
Top 1.33% on Npmjs.org
Badges
Extracted from project README
Version Next Version Download Backers and Sponsors FOSSA Status FOSSA Status
Related Projects