![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
react-native-ts-carousel-library
Advanced tools
A simple and fully customizable carousel library for React Native with Type Script. You can turn on the automatic image change, add a pagination or a title to the image.
A simple and fully customizable carousel library for React Native with Type Script. You can turn on the automatic image change, add a pagination or a title to the image.
npm i react-native-ts-carousel-library
cd ios
pod install
import Carousel from 'react-native-ts-carousel-library';
import { Dimensions } from 'react-native';
import {images} from './src/data';
function App() {
return (
<Carousel
data={images}
autoScroll={true}
pagination={true}
/>
)
}
If you use the local images, pass the path using the require() method like below:
const imagesFromPath = [
{url: require('./src/images/image1.jpg')},
{url: require('./src/images/image2.jpg')},
{url: require('./src/images/image3.jpg')},
];
For the images with url path the data array should look like below:
const images = [
{url: 'https://images.unsplash.com/photo-1551316679-9c6ae9dec224?w=800&q=80'},
{url: 'https://images.unsplash.com/photo-1562569633-622303bafef5?w=800&q=80'},
{url: 'https://images.unsplash.com/photo-1503656142023-618e7d1f435a?w=800&q=80'},
];
<Carousel
data={images}
autoScroll={true}
/>
Please make sure all your images have the similar size and orientation. You can decide, if you want to display landscape or portrait images. For landsape images, please set the landscapeImage props to true:
const landscapeImages = [
{url: require('./src/images/horizontal1.jpg'), title: 'little church'},
{url: require('./src/images/horizontal2.jpg'), title: 'river'},
{url: require('./src/images/horizontal3.jpg'), title: 'tenements'},
];
<Carousel
data={landscapeImages}
autoScroll={true}
landscapeImage={true} // add this prop
/>
FAQs
A simple and fully customizable carousel library for React Native with Type Script. You can turn on the automatic image change, add a pagination or a title to the image.
We found that react-native-ts-carousel-library demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.