Default Image

Carousel

A carousel component. Scales with its container.

import { Carousel } from '@redshank/native';

Examples

Default

Default carousel view.

APIs

Api props extends from ScrollView

AttributeTypeAccepted valuesDescriptionDefault
childrenJSXElemnt JSXElement[]React ElementAccessory as a child for the component, we suggest passing Header, Content or Footer elements-
scrollViewPropsScrollViewPropsOmit<ScrollViewProps, 'children'>Extra accessory for ScrollView element-
showScrollbooleantrue falseShow or Hidden scroll barsfalse
widthChildbooleantrue falseSubtract 60px to the element total widthfalse

Community:

We're excited to see the community adopt @redshank/native, raise issues, and provide feedback. Whether it's a feature request, bug report, or a project to showcase, please get involved!

DiscordGithub

Contributing:

PR's on @redshank/native are always welcome, please see our contribution guidelines to learn how you can contribute to this project.

Copyright © 2023 @redshank.