Content-Length: 317579 | pFad | http://github.com/candlefinance/slider

F3 GitHub - candlefinance/slider: A little (horizontal) animated slider component for React Native.
Skip to content

A little (horizontal) animated slider component for React Native.

License

Notifications You must be signed in to change notification settings

candlefinance/slider

Repository files navigation

Slider

A little (horizontal) animated slider component for React Native. Inspired by rn-vertical-slider.

Features

  • Vanilla React Native animation API
  • Compatible with Expo, try it out in the snack

Caveats

  • This implementation of the pan gesture animation runs on the JS thread.

Installation

yarn add @candlefinance/slider

Usage

Check out the example project for a demo project.

import Slider from '@candlefinance/slider';

<Slider
  value={myValue}
  disabled={false}
  min={1}
  max={99}
  onChange={(value) => {
    console.log('CHANGE', value);
    setMyValue(value);
  }}
  onComplete={(value) => {
    console.log('COMPLETE', value);
  }}
  width={300}
  height={54}
  step={1}
  maximumTrackTintColor="#c7c7c7"
  minimumTrackTintColor="#ff0067"
  ballIndicatorColor="#4f4f4f"
  ballIndicatorTextColor="#ffffff"
/>

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/candlefinance/slider

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy