1.2.1 • Published 4 years ago
react-native-hook-image-slider v1.2.1
React Native Hook Image Slider
Light and bare minimum image slider for React Native. Written in TypeScript with React functional components and hooks.
Install
npm i react-native-hook-image-slider
or
yarn add react-native-hook-image-slider
Props
Prop | Type | Description | Required | Default |
---|---|---|---|---|
images | string[] | Image source (either a remote URL or a local file resource) | Yes | None |
imageHeight | number | Image height in px | No | 300 |
loadingIndicatorColour | string | Color of loading indicator(image placeholder) | No | '#000' (black) |
separatorWidth | number | Width of the separator between images | No | 0 |
separatorColor | string | Separator color (only if separatorWidth > 0) | No | '#FFF' (white) |
activeDotColor | string | Color of active pagination dot | No | '#000' (black) |
emptyDotColor | string | Color of inactive pagination dot | No | '#FFF' (white) |
Quickstart
import * as React from "react"
import { View } from "react-native"
import Slider from "react-native-hook-image-slider"
const Component = () => {
return (
<View>
<Slider
images={[
"./images/you_are_awesome.jpeg",
"https://yourCDNLink.com/cat.jpeg",
"home/project/profits/spreadsheet.jpeg",
]}
/>
</View>
)
}
Contribution
All contributions are welcome. If you need any feature hit me up with feature request or do it yourself and prepare a merge request with a descriptive name.
1.2.1
4 years ago
1.0.28
4 years ago
1.0.27
4 years ago
1.0.22
4 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.26
4 years ago
1.0.25
4 years ago
1.0.24
4 years ago
1.0.23
4 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.10
4 years ago
1.0.6
4 years ago
1.0.2
4 years ago
1.0.0
4 years ago