From 492c9108815bb62d92f52be185a50fe39673c0ed Mon Sep 17 00:00:00 2001 From: Aryeh Stiefel Date: Wed, 25 Mar 2026 16:12:56 -0400 Subject: [PATCH] fix: resolve codegenNativeComponent parse failure in Expo/Metro bundling --- .gitignore | 2 ++ example/ios/Podfile.lock | 4 ++-- package.json | 2 ++ react-native.config.js | 10 ++++++++++ src/telemetry/sdkVersion.ts | 2 +- 5 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 react-native.config.js diff --git a/.gitignore b/.gitignore index b3456ea..b769603 100644 --- a/.gitignore +++ b/.gitignore @@ -78,3 +78,5 @@ vendor/ example/vendor/ test-results/ + +boltpay-react-native-*.tgz diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index abb9cb5..a3a8c99 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - BoltReactNativeSdk (0.5.3): + - BoltReactNativeSdk (0.5.4): - hermes-engine - RCTRequired - RCTTypeSafety @@ -2063,7 +2063,7 @@ EXTERNAL SOURCES: :path: "../../node_modules/react-native/ReactCommon/yoga" SPEC CHECKSUMS: - BoltReactNativeSdk: 284d07b55489adecbae8642ed3289504bc7de1db + BoltReactNativeSdk: 864da565871dba0ae2e0844e77cd58297c068af7 FBLazyVector: c12d2108050e27952983d565a232f6f7b1ad5e69 hermes-engine: f4f579ea06f83a03800993f3f445a5025f78f893 RCTDeprecation: 3280799c14232a56e5a44f92981a8ee33bc69fd9 diff --git a/package.json b/package.json index 06c9ac8..456ee85 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,13 @@ "types": "./lib/typescript/src/index.d.ts", "exports": { ".": { + "react-native": "./src/index.ts", "source": "./src/index.ts", "types": "./lib/typescript/src/index.d.ts", "default": "./lib/module/index.js" }, "./payments": { + "react-native": "./src/payments/index.ts", "source": "./src/payments/index.ts", "types": "./lib/typescript/src/payments/index.d.ts", "default": "./lib/module/payments/index.js" diff --git a/react-native.config.js b/react-native.config.js new file mode 100644 index 0000000..c28f72f --- /dev/null +++ b/react-native.config.js @@ -0,0 +1,10 @@ +module.exports = { + dependency: { + platforms: { + ios: {}, + android: { + componentDescriptors: ['BoltGooglePayButtonComponentDescriptor'], + }, + }, + }, +}; diff --git a/src/telemetry/sdkVersion.ts b/src/telemetry/sdkVersion.ts index a72d7dd..90460b3 100644 --- a/src/telemetry/sdkVersion.ts +++ b/src/telemetry/sdkVersion.ts @@ -1,2 +1,2 @@ // Auto-updated by scripts/update-sdk-version.js during release. Do not edit manually. -export const SDK_VERSION = '0.5.3'; +export const SDK_VERSION = '0.5.4';