All Projects → hezhii → rn-circular-slider

hezhii / rn-circular-slider

Licence: other
React Native circular slider based on react-native-svg

Programming Languages

javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to rn-circular-slider

Hgcircularslider
A custom reusable circular / progress slider control for iOS application.
Stars: ✭ 2,240 (+8860%)
Mutual labels:  slider, circle, circular
Jocircularslider
A highly customisable and reusable circular slider for iOS applications.
Stars: ✭ 128 (+412%)
Mutual labels:  slider, circle, circular
Circle Flags
A collection of 300+ minimal circular SVG country flags
Stars: ✭ 139 (+456%)
Mutual labels:  circle, circular
radiaSlider
circular/linear knob-style slider
Stars: ✭ 18 (-28%)
Mutual labels:  slider, circular
Bubblepictures
Bubble Pictures for iOS done in Swift
Stars: ✭ 434 (+1636%)
Mutual labels:  circle, circular
Mscircularslider
A fully-featured, powerful circular slider for iOS applications
Stars: ✭ 94 (+276%)
Mutual labels:  slider, circular
Cirque
An iOS component that enables you to draw multi color circle strokes with gradient trasitions between colors
Stars: ✭ 23 (-8%)
Mutual labels:  circle, circular
Circular Slider Android
Circular Slider UI Control for Android
Stars: ✭ 315 (+1160%)
Mutual labels:  slider, circle
Swiftfortunewheel
The ultimate spinning wheel view that supports dynamic content and rich customization.
Stars: ✭ 114 (+356%)
Mutual labels:  circle, circular
KJCircularSlider
Slide circularly. Soon more extended version about to come!
Stars: ✭ 23 (-8%)
Mutual labels:  slider, circular
vanilla-js-carousel
Tiny (1Kb gzipped) JavaScript carousel with all the features most of us will ever need.
Stars: ✭ 87 (+248%)
Mutual labels:  slider
Ring
圆环进度条,环形进度条
Stars: ✭ 52 (+108%)
Mutual labels:  circle
ACBRadialCollectionView
An extension on UICollectionView which automatically transforms collection view cells to a radial path
Stars: ✭ 31 (+24%)
Mutual labels:  circular
geometer
A simple drawing program to replicate construction with a compass and straightedge
Stars: ✭ 19 (-24%)
Mutual labels:  circle
height-slider
A customisable height slider for Flutter.
Stars: ✭ 15 (-40%)
Mutual labels:  slider
slider-button-card
A button card with integrated slider
Stars: ✭ 319 (+1176%)
Mutual labels:  slider
eros-plugin-ios-TencentCaptcha
腾讯防水墙、滑动验证、类似bilibili滑动验证码
Stars: ✭ 21 (-16%)
Mutual labels:  slider
unity circle menu
Circle Menu is a C# script used in Unity to quickly and easily create GUI circular menus, a great way to add intuitive and ergonomic menus to your applications and games.
Stars: ✭ 44 (+76%)
Mutual labels:  circle
slider
Infinite Slider library built on top of epoxy
Stars: ✭ 35 (+40%)
Mutual labels:  slider
basicSlider
A slider in its purest form.
Stars: ✭ 27 (+8%)
Mutual labels:  slider

rn-circular-slider

React Native circular slider based on react-native-svg

Installation

Install the rn-circular-slider package in your React Native project.

$ yarn add rn-circular-slider

Next, install react-native-svg

$ yarn add react-native-svg
$ react-native link react-native-svg

Usage

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

import CircularSlider from 'rn-circular-slider'

console.disableYellowBox = true

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

  render() {
    const { value } = this.state
    return (
      <View style={styles.container}>
        <CircularSlider
          step={2}
          min={10}
          max={80}
          value={value}
          onChange={value => this.setState({ value })}
          contentContainerStyle={styles.contentContainerStyle}
          strokeWidth={10}
          buttonBorderColor="#3FE3EB"
          buttonFillColor="#fff"
          buttonStrokeWidth={10}
          openingRadian={Math.PI / 4}
          buttonRadius={10}
          linearGradient={[{ stop: '0%', color: '#3FE3EB' }, { stop: '100%', color: '#7E84ED' }]}
        >
          <Text style={styles.value}>{value}</Text>
        </CircularSlider>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  contentContainerStyle: {
    justifyContent: 'center',
    alignItems: 'center'
  },
  value: {
    fontWeight: '500',
    fontSize: 32,
    color: '#3FE3EB'
  }
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].