UNPKG

react-native-klarna-inapp-sdk

Version:

This library wraps Klarna Mobile SDK and exposes its functionality as React Native components.

118 lines (117 loc) 3.42 kB
{ "name": "react-native-klarna-inapp-sdk", "title": "Klarna Mobile SDK React Native", "version": "2.6.0", "description": "This library wraps Klarna Mobile SDK and exposes its functionality as React Native components.", "main": "lib/commonjs/index", "module": "lib/module/index", "types": "lib/typescript/index.d.ts", "react-native": "src/index", "source": "src/index", "files": [ "src", "lib", "android", "ios", "cpp", "*.podspec", "!ios/build", "!ios/Podfile", "!ios/Pods", "!ios/RNKlarnaMobileSDK.xcworkspace", "!android/build", "!android/gradle", "!android/gradlew", "!android/gradlew.bat", "!android/local.properties", "!**/__tests__", "!**/__fixtures__", "!**/__mocks__", "!**/.*" ], "scripts": { "prepack": "bob build", "test": "jest", "typecheck": "tsc --noEmit", "lint": "eslint \"src/**/*.{js,ts,tsx}\"", "lint:fix": "eslint \"src/**/*.{js,ts,tsx}\" --fix", "prettier": "prettier --check \"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}\"", "prettier:fix": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}\"", "test:ios": "cd ios && xcodebuild test -workspace RNKlarnaMobileSDK.xcworkspace -scheme RNKlarnaMobileSDK -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17 Pro' -derivedDataPath build/DerivedData", "TestApp": "yarn --cwd ../../TestApp" }, "keywords": [ "react-native", "klarna", "sdk" ], "repository": "https://github.com/klarna/react-native-klarna-inapp-sdk", "author": "Mobile SDK <mobile.sdk@klarna.com>", "license": "Apache-2.0", "bugs": { "url": "https://github.com/klarna/react-native-klarna-inapp-sdk/issues" }, "homepage": "https://github.com/klarna/react-native-klarna-inapp-sdk#readme", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "licenseFilename": "LICENSE", "readmeFilename": "README.md", "peerDependencies": { "react": ">=16.5.0", "react-native": ">=0.57.0 <1.0.x" }, "devDependencies": { "@types/jest": "^29.5.4", "@types/react": "^18.0.24", "@types/react-native": "^0.72.2", "jest": "^29.2.1", "metro-react-native-babel-preset": "0.76.8", "react": "18.2.0", "react-native": "0.72.4", "react-native-builder-bob": "^0.20.0", "typescript": "^5.0.2" }, "jest": { "preset": "react-native", "testPathIgnorePatterns": [ "/node_modules/", "/lib/" ], "transformIgnorePatterns": [ "node_modules/(?!(react-native|@react-native)/)" ] }, "engines": { "node": ">=16" }, "react-native-builder-bob": { "source": "src", "output": "lib", "targets": [ "commonjs", "module", "typescript" ] }, "codegenConfig": { "name": "RNKlarnaMobileSDK", "type": "all", "jsSrcsDir": "src/specs", "android": { "javaPackageName": "com.klarna.mobile.sdk.reactnative" }, "ios": { "componentProvider": { "RNKlarnaStandaloneWebView": "KlarnaStandaloneWebViewWrapper", "RNKlarnaCheckoutView": "KlarnaCheckoutViewWrapper", "RNKlarnaPaymentView": "PaymentViewWrapper", "RNKlarnaExpressCheckoutView": "KlarnaExpressCheckoutViewWrapper", "RNKlarnaOSMView": "KlarnaOSMViewWrapper" }, "modulesProvider": { "RNKlarnaSignIn": "KlarnaSignInModule" } } } }