Skip to content

chore(loader): RN hcaptcha loader integration#115

Open
damian-rodriguez-imi wants to merge 26 commits into
masterfrom
chore/add-hcaptcha-loader
Open

chore(loader): RN hcaptcha loader integration#115
damian-rodriguez-imi wants to merge 26 commits into
masterfrom
chore/add-hcaptcha-loader

Conversation

@damian-rodriguez-imi

@damian-rodriguez-imi damian-rodriguez-imi commented Jul 10, 2026

Copy link
Copy Markdown

Loads api.js through @hcaptcha/loader inside the React Native WebView, adding automatic retries, duplicate-load protection, and internal failure reporting while preserving the existing public SDK API.

Notes

  • tests.yaml: pins iOS jobs to macOS 15 because macos-latest lacked the Xcode 16.4 installation and iOS 18.5 simulator explicitly used by CI.
  • Jest: RN 0.86 moved its preset to @react-native/jest-preset, so the generated app installs the matching version; unused @babel/preset-env was removed because its Babel 8 peer requirement conflicted with RN's Babel 7.
  • Sentry: removes the ConfirmHcaptcha default so omission keeps the API default, while explicit true/false is preserved.

@damian-rodriguez-imi
damian-rodriguez-imi force-pushed the chore/add-hcaptcha-loader branch from 8bc107f to 3097c91 Compare July 14, 2026 21:19
@damian-rodriguez-imi damian-rodriguez-imi changed the title wip(loader): RN hcaptcha loader integration chore(loader): RN hcaptcha loader integration Jul 15, 2026
@damian-rodriguez-imi damian-rodriguez-imi self-assigned this Jul 15, 2026
@damian-rodriguez-imi
damian-rodriguez-imi marked this pull request as ready for review July 15, 2026 20:10
@damian-rodriguez-imi
damian-rodriguez-imi marked this pull request as draft July 15, 2026 20:12
@damian-rodriguez-imi
damian-rodriguez-imi marked this pull request as ready for review July 15, 2026 20:19
@damian-rodriguez-imi
damian-rodriguez-imi force-pushed the chore/add-hcaptcha-loader branch from 8408df6 to 85c942b Compare July 15, 2026 20:23
@damian-rodriguez-imi
damian-rodriguez-imi marked this pull request as draft July 15, 2026 20:23
@damian-rodriguez-imi
damian-rodriguez-imi marked this pull request as ready for review July 15, 2026 20:24
@damian-rodriguez-imi
damian-rodriguez-imi marked this pull request as draft July 15, 2026 20:32
@damian-rodriguez-imi
damian-rodriguez-imi marked this pull request as ready for review July 15, 2026 20:32
@damian-rodriguez-imi
damian-rodriguez-imi marked this pull request as draft July 15, 2026 20:36
@damian-rodriguez-imi
damian-rodriguez-imi marked this pull request as ready for review July 15, 2026 20:48
Comment thread Hcaptcha.js Outdated
return url;
};

const buildHcaptchaLoaderConfig = ({

@brdlyptrs brdlyptrs Jul 15, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Couldn't this just be an object than a function returning an object? I see the reason below, can you make this an actual function rather than a short hand const function to create a more declarative and understandable approach?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

addressed in 5eb943e

Comment thread __tests__/Hcaptcha.test.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants