Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-fluid-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-fluid-slider

Cross-platform, customized React-Native slider, on JavaScript

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-90%
Maintainers
1
Weekly downloads
 
Created
Source

iOS iOS npm compatible Twitter Facebook Medium

Slider

About

Our company provides custom UI design and development solutions for mobile applications and websites.

Need a team to create a project?

This project is developed and maintained by openGeeksLab LLC.

react-native-fluid-slider

Requirements

  • React Native 0.50+
  • iOS 9.0+
  • Android 4.2+

Installation

Just run:

  • npm i @opengeekslab/react-native-fluid-slider

Basic usage

import React, { Component } from 'react';
import {
  StyleSheet,
  Text,
  View,
} from 'react-native';

import Slider from '@opengeekslab/react-native-fluid-slider';

export default class App extends Component {
  state = { value: 40 }

  render() {
    return (
      <View style={styles.container}>
        <View style={styles.sliderContainer}>
          <Text style={styles.valueText}>
            {this.state.value.toFixed()}
          </Text>
          <Slider
            value={this.state.value}
            onValueChange={value => this.setState({ value })}
          />
        </View>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    backgroundColor: '#000',
    paddingHorizontal: 70,
  },
  sliderContainer: {
    width: '100%',
  },
  valueText: {
    fontSize: 40,
    textAlign: 'center',
    margin: 10,
    color: '#ee6d51',
  },
});

Properties

value - is the value of the slider.
step - is the slider step.
minimumValue - is the minimum value.
maximumValue - is the maximum value.
onValueChange - it is called when the value of the slider is changed and getting the new slider value parameter.
thumbTintColor - is the slider color.
minimumTrackTintColor - is the color of the slider track on the left of the slider.
maximumTrackTintColor - is the color of the slider track on the right of the slider.

Contact us if interested.

Licence

Expanding is released under the MIT license.

Keywords

FAQs

Package last updated on 24 Sep 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc