react-native-momentum-carousel
Version:
A React Native carousel component enables smooth and interactive image or content sliders with swiping capabilities. Ideal for showcasing multiple items or images in a compact space, this carousel can be customized with features like infinite scrolling, p
22 lines (21 loc) • 670 B
JavaScript
;
import React from 'react';
import { View } from 'react-native';
import { styles } from './style';
import { jsx as _jsx } from "react/jsx-runtime";
const Pagination = ({
dataLength,
currentIndex,
paginationStyle
}) => {
return /*#__PURE__*/_jsx(View, {
style: [styles.paginationContainer, paginationStyle?.container],
children: Array.from({
length: dataLength
}).map((_, index) => /*#__PURE__*/_jsx(View, {
style: [styles.bullet, paginationStyle?.bullet, index === currentIndex && [styles.activeBullet, paginationStyle?.activeBullet]]
}, index))
});
};
export default Pagination;
//# sourceMappingURL=Pagination.js.map