Skip to content

Add React Native checkout preloading#343

Merged
tiagocandido merged 1 commit into
mainfrom
feat/react-native-preload
Jun 29, 2026
Merged

Add React Native checkout preloading#343
tiagocandido merged 1 commit into
mainfrom
feat/react-native-preload

Conversation

@tiagocandido

@tiagocandido tiagocandido commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

What changes are you making?

Adds React Native APIs and sample wiring for checkout preloading.

This exposes preload and cache invalidation through the React Native module, forwards the configuration flag to native SDKs, and updates the sample app to preload from the cart screen while invalidating when cart state changes.

How to test

  • dev rn test js
  • dev rn api check
  • dev rn test android
  • dev rn lint
  • dev rn test ios

Before you merge

Important

  • I have added tests to support my implementation
  • I have read and agree with the Contribution Guidelines
  • I have read and agree with the Code of Conduct
  • I have updated the relevant platform README (platforms/swift/README.md and/or platforms/android/README.md)

Releasing a new Swift version?
  • I have bumped the version in ShopifyCheckoutKit.podspec
  • I have bumped the version in platforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swift
  • I have updated platforms/swift/CHANGELOG.md
  • I have updated the SwiftPM/CocoaPods version snippets in platforms/swift/README.md (major version only)
Releasing a new Embedded Checkout Protocol version?
  • I have bumped embeddedCheckoutProtocolAndroid in platforms/android/gradle/libs.versions.toml
  • I have updated protocol/languages/kotlin/embedded-checkout-protocol/api/embedded-checkout-protocol.api if the public API changed
Releasing a new Android version?
  • I have bumped checkoutKitAndroid in platforms/android/gradle/libs.versions.toml
  • I have updated platforms/android/CHANGELOG.md
  • I have updated the Gradle/Maven version snippets in platforms/android/README.md

Tip

See the Contributing documentation for the full release process per platform.

@tiagocandido
tiagocandido marked this pull request as ready for review June 25, 2026 12:37
@tiagocandido
tiagocandido requested a review from a team as a code owner June 25, 2026 12:37
@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

React Native — Coverage Report

Lines Statements Branches Functions
Coverage: 92%
91.83% (326/355) 87.98% (183/208) 100% (86/86)

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

Package Size

Platform Artifact Base Head Delta
React Native npm tarball 90.9 KiB 91.7 KiB +841 B

Measured from the PR base SHA and PR head SHA. This comment reports package artifact sizes only; it is not a final app binary-size report.

@tiagocandido tiagocandido added the #gsd:50662 Rebase Checkout Kit on UCP label Jun 25, 2026 — with Graphite App

@markmur markmur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we just need to check if preloading is enabled before calling the preload method, and add a test for the case but looks good otherwise 👍

@tiagocandido
tiagocandido force-pushed the feat/react-native-preload branch 3 times, most recently from 8d2d373 to 5ef28cb Compare June 25, 2026 14:51
@tiagocandido

Copy link
Copy Markdown
Contributor Author

Looks like we just need to check if preloading is enabled before calling the preload method, and add a test for the case but looks good otherwise 👍

Done — preload() now checks the preloading config before calling native preload, and there’s coverage for the disabled case.

@tiagocandido
tiagocandido force-pushed the feat/react-native-preload branch 2 times, most recently from 471c220 to bb93a87 Compare June 25, 2026 16:31
@tiagocandido
tiagocandido force-pushed the feat/react-native-preload branch 2 times, most recently from a07080b to 86cbecb Compare June 26, 2026 15:10
@tiagocandido
tiagocandido force-pushed the feat/react-native-preload branch from 86cbecb to f44225a Compare June 29, 2026 10:08
@tiagocandido
tiagocandido enabled auto-merge (squash) June 29, 2026 10:25
@tiagocandido
tiagocandido merged commit be333cc into main Jun 29, 2026
29 checks passed
@tiagocandido
tiagocandido deleted the feat/react-native-preload branch June 29, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants