-
Notifications
You must be signed in to change notification settings - Fork 284
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
base: gbirch/rowselectionbehavior-MOBILESDK-3619
Are you sure you want to change the base?
flatWithChevron API #1979
Conversation
…/flatWithChevron-MOBILESDK-3618
…/flatWithChevron-MOBILESDK-3618
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."; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
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
Documentation
Select one: