
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
rn-animated-image-slider
Advanced tools
Welcome to our React Native Animated Image Slider! This library is inspired by the beautiful and intuitive design of Apple's Memories app, bringing a touch of elegance to your React Native applications.Our Animated Image Slider is not just a simple carous
Welcome to our React Native Animated Image Slider! This library is inspired by the beautiful and intuitive design of Apple's Memories app, bringing a touch of elegance to your React Native applications.
Our Animated Image Slider is not just a simple carousel of images. It's a dynamic, interactive, and visually appealing component that enhances the user experience. With smooth transitions and subtle animations, users can easily navigate through their favorite photos or any other content.
Table of Content:
npm i rn-animated-image-slider --save
or
yarn add rn-animated-image-slider
Take a look into example folder
To execute the example using Expo run the following command:
yarn run run:example
Step 1: Import the ImageSlider component:
import { ImageSlider } from "rn-animated-image-slider";
Second step: define the slides
const slides = [
{
source: {uri: 'https://picsum.photos/id/16/1000/800'},
},
{
source: {uri: 'https://picsum.photos/id/17/1000/800'},
},
{
source: {uri: 'https://picsum.photos/id/18/1000/800'},
},
];
or pass local image
const actions = [
{
source: require('@/assets/image1.png'),
},
{
source: require('@/assets/image2.png'),
},
{
source: require('@/assets/image3.png'),
},
];
Third step: use it
<View style={styles.container}>
<Text style={styles.example}>Animated Slider example</Text>
<ImageSlider
slides={slides}
title={'Slider title'}
date={new Date().toLocaleDateString("en-US", { day: 'numeric', month: 'short', year: 'numeric' })}
onGalleryPress={() => console.log('gallery Pressed')}
onControllersVisibleChange={isVisible =>
console.log(`isController visible ${isVisible}`)
}
onMutePress={() => console.log('on mute press')}
onPausePress={() => console.log('on pause press')}
/>
</View>
containerStyle: ViewStyleDefault: undefind
Optional styling for the container of the image slider.
slides: Array<{ source: ImageSourcePropType }>Required
An array of objects representing the images to be displayed in the slider. Each object should contain a source property which is of type ImageSourcePropType.
onGalleryPress: () => voidDefault: undefined
Callback function to be executed when the gallery button is pressed.
onMutePress: (isMute: boolean) => voidDefault: undefined
Callback function to be executed when the mute button is pressed. The function receives a boolean indicating whether the slider is currently muted.
onPausePress: (isPaused: boolean) => voidDefault: undefined
Callback function to be executed when the pause button is pressed. The function receives a boolean indicating whether the slider is currently paused.
onControllersVisibleChange: (isControllersVisible: boolean) => voidDefault: undefined
Callback function to be executed when the visibility of the controllers changes.
@param isControllersVisible: boolean indicating whether the controllers are currently visibletitle: stringRequired:
The title to be displayed above the image slider.
titleStyle: TextStyleDefault: undefined
Optional styling for the title.
date: stringDefault: undefined
The date to be displayed below the image slider.
dateStyle: TextStyleDefault: undefined
Optional styling for the date.
controllerComponent: () => JSX.ElementDefault: undefined
Optional custom component to be used as the controller.
slideContainerStyle: ViewStyleDefault: undefined
Optional styling for the container of each slide.
controllerContainerStyle: ViewStyleDefault: #undefined
Optional styling for the container of the controller.
controllersStyle: ViewStyleDefault: undefined
Optional styling for the controllers.
sliderWidth: numberDefault: Dimensions.get('window').width
Optional width for the slider.
sliderHeight: numberDefault: Dimensions.get('window').height
Optional height for the slider.
rotateDegree: numberDefault: Math.PI
Optional rotateDegree is a constant that represents the degree of rotation for the slides. It is set to Math.PI radians, which is approximately 3.14159 degrees.
slideDuration: numberDefault: 6000
Optional duration for each slide transition in ms.
sizeIcon: numberDefault: 33
Optional size for the icons.
FAQs
Welcome to our React Native Animated Image Slider! This library is inspired by the beautiful and intuitive design of Apple's Memories app, bringing a touch of elegance to your React Native applications.Our Animated Image Slider is not just a simple carous
We found that rn-animated-image-slider 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.

Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.

Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.

Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.