Skip to content

docs: clarify height requirement for PlatformPayButton style prop - #2754

Merged
jaynewstrom-stripe merged 1 commit into
stripe:masterfrom
reginaldalfret:docs/issue-1788-platform-pay-button-height
Oct 19, 2026
Merged

jaynewstrom-stripe merged 1 commit into
stripe:masterfrom
reginaldalfret:docs/issue-1788-platform-pay-button-height

Conversation

@reginaldalfret

Copy link
Copy Markdown
Contributor

Summary

Addresses #1788 by explicitly documenting that the native Apple Pay and Google Pay button views do not have an intrinsic height in React Native. Without a specified \height\ in the \style\ prop (or container), the \PlatformPayButton\ container collapses to a height of 0 and becomes invisible.

Changes

  • Updated the JSDoc description for \Props.style\ on \PlatformPayButton\ to explain the \height\ requirement (e.g. \height: 48\ or \height: 50).
  • Clarified the requirement in the component's main JSDoc comment.
  • Updated the inline @example\ snippet to demonstrate \style={{ height: 48 }}.

Signed-off-by: reginaldalfret reginaldalfret@gmail.com

Signed-off-by: reginaldalfret <reginaldalfret@gmail.com>
@reginaldalfret
reginaldalfret requested review from a team as code owners October 19, 2026 09:16
@jaynewstrom-stripe
jaynewstrom-stripe merged commit 3882ed8 into stripe:master Oct 19, 2026
4 of 6 checks passed
guido-stripe added a commit that referenced this pull request Oct 21, 2026
#2754 documented PlatformPayButton's `style` prop without regenerating
etc/stripe-react-native.api.md, so the "Check API report is up to date"
CI step fails on master and every open PR.


Committed-By-Agent: claude

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants