# react-native-swiper
**Repository Path**: nameqiang/react-native-swiper
## Basic Information
- **Project Name**: react-native-swiper
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-07-01
- **Last Updated**: 2021-07-02
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# RangeSlider
A highly optimized and fully customizable pure JS component for value range selection.
The component is not re-rendered while user moves the thumb.
Even if there is a label, only the label component is re-rendered when values are changed.
RangeSlider uses React Native's Animated library to transform thumbs / label / selected rail.
These optimizations help to achieve as much native look & feel as possible using only the JS layer.
#### Version 1
The version 1 was using native Android and iOS views.
That gives native look & feel in favor of flexibility.
You can find the version 1 [here](https://github.com/githuboftigran/rn-range-slider/tree/v1).
## Installation
* npm: `npm install --save rn-range-slider`
* yarn: `yarn add rn-range-slider`
## Usage
RangeSlider uses react hooks, so this component doesn't work with React Native versions below 0.59.0
You can find basic implementation of needed components (Thumb, Rail, RailSelected, Label, Notch) [here](https://github.com/githuboftigran/rn-widgets-demo).
```
...
import RangeSlider from 'rn-range-slider';
...
const renderThumb = useCallback(() => , []);
const renderRail = useCallback(() => , []);
const renderRailSelected = useCallback(() => , []);
const renderLabel = useCallback(value =>