Socket
Book a DemoInstallSign in
Socket

react-native-epic-slider

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-epic-slider

![NPM Version](https://img.shields.io/npm/v/react-native-epic-slider) ![NPM Downloads](https://img.shields.io/npm/dw/react-native-epic-slider) [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)

1.0.1
latest
npmnpm
Version published
Weekly downloads
10
150%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Epic Slider

NPM Version NPM Downloads MIT License

A highly customizable and feature-rich slider component for React Native with support for custom thumbs, points, floating labels, and more.

React Native Epic Slider Demo

Features

  • 🎨 Fully customizable design
  • 👆 Smooth touch interactions
  • 🏷️ Custom floating labels
  • 🎯 Track points support
  • 📏 Custom track and thumb sizes
  • 🎭 Custom thumb component
  • 🔢 Decimal and step value support
  • 🎨 Rich styling options

Installation

# Using npm
npm install react-native-epic-slider

# Using yarn
yarn add react-native-epic-slider

# Using pnpm
pnpm add react-native-epic-slider

Basic Usage

import Slider from 'react-native-epic-slider';

const App = () => {
  return (
    <Slider
      min={0}
      max={100}
      value={50}
      onChange={(value) => console.log('Current value:', value)}
    />
  );
};

Advanced Usage

import Slider from 'react-native-epic-slider';

const App = () => {
  const CustomThumb = () => (
    <View style={styles.customThumb}>
      <Text>📍</Text>
    </View>
  );

  const CustomFloatingLabel = ({ value }) => (
    <View style={styles.labelContainer}>
      <Text style={styles.labelText}>{value}%</Text>
    </View>
  );

  return (
    <Slider
      min={0}
      max={100}
      value={50}
      step={5}
      showFloatingLabel={true}
      FloatingLabel={CustomFloatingLabel}
      Thumb={CustomThumb}
      points={[
        { value: 25, color: '#FF5733' },
        { value: 50, color: '#33FF57' },
        { value: 75, color: '#3357FF' },
      ]}
      thumbColor="#2196F3"
      trackColor="#E0E0E0"
      onChange={(value) => console.log('Current value:', value)}
    />
  );
};

Props

PropTypeDefaultDescription
minnumber0Minimum value of the slider
maxnumber100Maximum value of the slider
valuenumber-Current value of the slider
stepnumber1Step value for incrementing/decrementing
onChangefunction-Callback function when value changes
allowDecimalbooleanfalseAllow decimal values
showValuebooleantrueShow current value above slider
valuePrefixstring''Prefix for the displayed value
valueSuffixstring''Suffix for the displayed value
trackColorstring'#E5E4E2'Color of the unfilled track
thumbColorstring'#22223B'Color of the thumb and filled track
trackHeightnumber4Height of the slider track
trackWidthnumber-Width of the slider track
thumbSizenumber20Size of the thumb
disableTrackTouchbooleanfalseDisable touch interaction with track
Thumbcomponent-Custom thumb component
pointsarray[]Array of points to display on track
showFloatingLabelbooleanfalseShow floating label while dragging
FloatingLabelcomponent-Custom floating label component
trackStylesstyle-Additional styles for track
trackProgressStylesstyle-Additional styles for progress track

Points Props

Each point in the points array can have the following properties:

PropTypeDescription
valuenumberValue at which to display the point
colorstringColor of the point
sizenumberSize of the point
customPointcomponentCustom component for the point

Contributing

Feel free to submit issues and enhancement requests!

  • Fork the repository
  • Create your feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes (git commit -m 'Add some amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Your Name

Support

If you found this project helpful, please consider giving it a ⭐️!

Donation

If you find my projects and contributions helpful, consider supporting me. Your support means a lot and helps me continue creating and sharing more cool stuff.

Buy Me A Coffee

Hire

I'm a skilled React and React Native developer ready to help with your project. Let's create something great together! Contact me hardikviradiya27@gmail.com

Keywords

slider

FAQs

Package last updated on 16 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.