
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
@5stones/react-native-slider
Advanced tools
A truly simple react-native slider.
We needed a slider that was:
react-native-gesture-handler
.Every other slider is either based on react-native
's gesture handler OR are several hundred lines of code and seemingly unnecessarily complex to debug. So we built a slider that was less than 200 lines of code and utilized react-native-gesture-handler
.
npm install @5stones/react-native-slider
import React from 'react';
import { View } from 'react-native';
import Slider from "@5stones/react-native-slider";
const Screen: React.FC = () => {
return (
<View>
<Slider/>
</View>
);
};
Name | Optional | Type | Description |
---|---|---|---|
value | :white_check_mark: | number | A numeric value allowing between the minimumValue and maximumValue allowing you to control the position of the slider. |
onValueChange | :white_check_mark: | (value: number) => void | A callback function allowing you to receive updates of the slider position. |
thumbSize | :white_check_mark: | number | Specify the size of the thumb (this is important as it's used to calculate positions). |
minimumValue | :white_check_mark: | number | The minimum bound of the sliders value. |
maximumValue | :white_check_mark: | number | The maximum bound of the sliders value. |
defaultContainerWidth | :white_check_mark: | number | A default value for the width of the container (which will get overwritten dynamically after layout). |
touchableContainerStyle | :white_check_mark: | ViewStyle | A style object allowing you control over the touch target container. |
containerStyle | :white_check_mark: | ViewStyle | A style object allowing you control over the container. |
thumbStyle | :white_check_mark: | ViewStyle | A style object allowing you control over the thumb. |
minimumTrackStyle | :white_check_mark: | ViewStyle | A style object allowing you control over the minimum track. |
maximumTrackStyle | :white_check_mark: | ViewStyle | A style object allowing you control over the maximum track. |
The standard release command for this project is:
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]
This command will:
e.g.
npm version 1.2.17
npm version patch // 1.2.17 -> 1.2.18
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
A truly simple react-native slider
The npm package @5stones/react-native-slider receives a total of 0 weekly downloads. As such, @5stones/react-native-slider popularity was classified as not popular.
We found that @5stones/react-native-slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.