1.2.1 • Published 6 years ago

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

Weekly downloads
7
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.10

6 years ago

1.0.6

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago