-
Notifications
You must be signed in to change notification settings - Fork 740
Allow passing counter style to adjust margins of carousel component #3833
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: master
Are you sure you want to change the base?
Changes from 4 commits
6ded578
f5a224d
ac76326
1532fdd
c0c1102
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,13 @@ export interface CarouselProps extends ScrollViewProps { | |
| * whether to show a page counter (will not work with 'pageWidth' prop) | ||
| */ | ||
| showCounter?: boolean; | ||
| /** | ||
| * the counter's style | ||
| */ | ||
| /** | ||
| * the counter's container style | ||
| */ | ||
| counterContainerStyle?: StyleProp<ViewStyle>; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alwaysintune @adids1221
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's the only solution to add margin to the right
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To elaborate more - currently counter has an absolute position. Absolute position forces item design to conform, fill the full width, whilst carousel is written with use cases in mind, so a lot of props can't be used together (i. e. loop and item spacings).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mixing with banners leads to cases where it would be best to have a different position for counter because it conflicts with dismiss x action |
||
| /** | ||
| * the counter's text style | ||
| */ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.