1.2.1 • Published 4 years ago

react-native-hook-image-slider v1.2.1

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

React Native Hook Image Slider

Light and bare minimum image slider for React Native. Written in TypeScript with React functional components and hooks.


SliderBox

Install

npm i react-native-hook-image-slider

or

yarn add react-native-hook-image-slider

Props

PropTypeDescriptionRequiredDefault
imagesstring[]Image source (either a remote URL or a local file resource)YesNone
imageHeightnumberImage height in pxNo300
loadingIndicatorColourstringColor of loading indicator(image placeholder)No'#000' (black)
separatorWidthnumberWidth of the separator between imagesNo0
separatorColorstringSeparator color (only if separatorWidth > 0)No'#FFF' (white)
activeDotColorstringColor of active pagination dotNo'#000' (black)
emptyDotColorstringColor of inactive pagination dotNo'#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