react-native-iap 14.3.3-rc.1 → 14.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iap",
3
- "version": "14.3.3-rc.1",
3
+ "version": "14.3.3",
4
4
  "description": "React Native In-App Purchases module for iOS and Android using Nitro",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -1 +1 @@
1
- {"root":["./src/withiap.ts"],"version":"5.9.2"}
1
+ {"root":["./src/withIAP.ts"],"version":"5.9.2"}
package/lib/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- export * from './specs/RnIap.nitro';
2
- declare class RnIapImpl {
3
- private hybridObject;
4
- private getHybridObject;
5
- toString(): string;
6
- }
7
- declare const RnIap: RnIapImpl;
8
- export default RnIap;
package/lib/index.js DELETED
@@ -1,36 +0,0 @@
1
- import { NitroModules } from 'react-native-nitro-modules';
2
- export * from './specs/RnIap.nitro';
3
- class RnIapImpl {
4
- hybridObject = null;
5
- getHybridObject() {
6
- if (!this.hybridObject) {
7
- try {
8
- console.log('🔧 Creating RnIap HybridObject...');
9
- this.hybridObject = NitroModules.createHybridObject('RnIap');
10
- console.log('🔧 HybridObject created successfully:', !!this.hybridObject);
11
- }
12
- catch (error) {
13
- console.error('🔧 Failed to create HybridObject:', error);
14
- throw new Error(`Failed to create RnIap HybridObject: ${error}`);
15
- }
16
- }
17
- return this.hybridObject;
18
- }
19
- toString() {
20
- try {
21
- console.log('🔧 Getting HybridObject for toString...');
22
- const hybridObject = this.getHybridObject();
23
- console.log('🔧 HybridObject obtained, calling toString...');
24
- const result = hybridObject.toString();
25
- console.log('🔧 toString completed with result:', result);
26
- return result;
27
- }
28
- catch (error) {
29
- console.error('🔧 toString failed:', error);
30
- throw error;
31
- }
32
- }
33
- }
34
- // Create singleton instance
35
- const RnIap = new RnIapImpl();
36
- export default RnIap;
@@ -1,7 +0,0 @@
1
- import type { HybridObject } from 'react-native-nitro-modules';
2
- export interface RnIap extends HybridObject<{
3
- ios: 'swift';
4
- android: 'kotlin';
5
- }> {
6
- toString(): string;
7
- }
@@ -1 +0,0 @@
1
- export {};