Skip to content

flatWithChevron API #1979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: gbirch/rowselectionbehavior-MOBILESDK-3619
Choose a base branch
from

Conversation

gbirch-stripe
Copy link
Contributor

Summary

flatWithChevron API. PR only points to rowselectionbehavior branch for now since this is a sub-branch depending on it

Motivation

Matching iOS and Android SDKs. The new style adds an option for merchants that may better align with their design language and more seamlessly integrate the Embedded Payment Element into their app.
https://jira.corp.stripe.com/browse/MOBILESDK-3618?filter=-1
API review: https://docs.google.com/document/d/1z_MZtnsGuAZtGaaxAUOjffMSywIpdoO9v5yZOJbbxCA/edit?tab=t.0

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

Comment on lines +291 to +292
if (!isImmediateAction && isFlatWithChevron) {
return "The 'flatWithChevron' row style can only be used with 'immediateAction' row selection behavior. Set rowSelectionBehavior to 'immediateAction' or use a different row style.";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same w/ my other comment in the other PR. Would be nice to not have to duplicate this logic if we don't have to since both native SDKs already do this validation.

topSeparatorEnabled = topEnabled,
bottomSeparatorEnabled = bottomEnabled,
additionalVerticalInsetsDp = additionalInsets,
horizontalInsetsDp = 0.0F, // We do not have an iOS equal for this API so it's not configurable in React Native
Copy link
Collaborator

Choose a reason for hiding this comment

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

@porter-stripe was this not added for iOS embedded?

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.

3 participants