Here's a patch-package patch to fix the issue:
diff --git a/node_modules/react-native-square-in-app-payments/package.json b/node_modules/react-native-square-in-app-payments/package.json
index 7617121..724ba4b 100644
--- a/node_modules/react-native-square-in-app-payments/package.json
+++ b/node_modules/react-native-square-in-app-payments/package.json
@@ -2,13 +2,13 @@
"name": "react-native-square-in-app-payments",
"version": "2.0.0",
"description": "An open source React Native plugin for calling Square’s native In-App Payments SDK to take in-app payments on iOS and Android.",
- "main": "./lib/module/index.js",
- "types": "./lib/typescript/src/index.d.ts",
+ "main": "./src/index.ts",
+ "types": "./src/types/index.ts",
"exports": {
".": {
"source": "./src/index.tsx",
- "types": "./lib/typescript/src/index.d.ts",
- "default": "./lib/module/index.js"
+ "types": "./src/types/index.ts",
+ "default": "./src/index.ts"
},
"./package.json": "./package.json",
"./app.plugin.js": "./app.plugin.js"
Originally posted by @todesignandconquer in #259
Originally posted by @todesignandconquer in #259