All Projects → netbeast → react-native-dial

netbeast / react-native-dial

Licence: MIT license
A react native reusable and efficient dial knob element

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 react-native-dial

SynthKnobExample
Example of a nice and smoothly controlled Knob for iOS. Includes PaintCode file.
Stars: ✭ 14 (-78.46%)
Mutual labels:  knob
ytcast
cast YouTube videos to your smart TV from command-line
Stars: ✭ 674 (+936.92%)
Mutual labels:  dial
MGS.Electronics
Unity plugin for make button switch, knob switch and rocker element in scene.
Stars: ✭ 12 (-81.54%)
Mutual labels:  knob
vue-round-slider
A round slider component for Vue JS, with range slider support. Also it can be any kind of arc slider such as pie shape, half / semi-circle, quarter circle shape sliders.
Stars: ✭ 45 (-30.77%)
Mutual labels:  knob
pure-knob
Canvas-based JavaScript UI element implementing touch, keyboard, mouse and scroll wheel support.
Stars: ✭ 39 (-40%)
Mutual labels:  knob
qtpy-knob
QT Py Media Knob using rotary encoder & neopixel ring
Stars: ✭ 49 (-24.62%)
Mutual labels:  knob
svg-knob
A flexible and customizable knob for your web applications.
Stars: ✭ 22 (-66.15%)
Mutual labels:  knob
Puffer
A swift tool for mimicking a rotation dial
Stars: ✭ 16 (-75.38%)
Mutual labels:  dial
HorizontalAndCircleTimeView
自定义水平刻度尺和圆形钟表刻度 可点击 可拖动 刻度 水平刻度划分为60份 圆形刻度划分为24份 可自定义修改
Stars: ✭ 14 (-78.46%)
Mutual labels:  dial

react-native-dial

npm version

works with yeti

 This package powers Yeti Smart Home and is used in production.

A react native reusable and efficient dial knob element.

import { Dial } from 'react-native-dial'
// ...
<Dial 
   initialRadius={brightness * DIF_RADIUS / 100 + MIN_RADIUS}
   radiusMax={MAX_RADIUS}
   radiusMin={MIN_RADIUS}
   onPress={() => this.toggle()}
   responderStyle={styles.responderStyle}
   wrapperStyle={styles.wheelWrapper}
   onValueChange={(a, r) => this.changeBrightness(r)} />

demo screenshot

Some properties:

<Dial
 fixed // disallows angle updates
 elastic // allows scaling the element
 initialAngle={Number}
 initialRadius={Number}
 radiusMax={Number}
 radiusMin={Number}
 responderStyle={ReactNative.Styles}
 wrapperStyle={ReactNative.Styles}
 >
 {/* 
   Optionally you can pass children so it renders a different component of your choice as a Dial,
   that can change in scale and angle
 */}
   <YourCustomDial />
 </Dial>
 

More documentation is incoming, in the meanwhile please read the source code. It is a single file! PRs and issues are more than welcome.

Follow us in Github or https://twitter.com/netbeast_co.

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].