• Stars
    star
    139
  • Rank 262,954 (Top 6 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 2 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

React Native component to select or highlight a specific value from a range of values ๐Ÿ‘Œ โœจ

Radial Slider - Simform

react-native-radial-slider

react-native-radial-slider on npm react-native-radial-slider downloads react-native-radial-slider install size Android iOS MIT


This is a pure javascript and react-native-svg based library that provides many variants of Radial Slider and Speedo Meter including default, radial-circle-slider, speedometer and speedometer-marker

Radial Slider allows you to select any specific value from a range of values. It comes with two variants, one is default and which allows selection on a 180-degree arc and the second one is 360-degree which allows selection of values on a complete circle. It can be used to select/set goals, vision, range, etc.

The Speedo Meter allows you to highlight a specific value from a range of values. It comes with two variants, the default one shows a needle and another one shows marking values with a needle. It can be used to display the speed of the internet, vehicle, fan, etc.

This library is easy to use and provides you full customization, so you can customize components based on your need.

๐ŸŽฌ Preview


RadialSlider SpeedoMeter
alt RadialSlider alt SpeedoMeter

Quick Access

Installation | RadialSlider | SpeedoMeter | Properties | Example | License

Installation

1. Install library and react-native-svg
$ npm install react-native-radial-slider react-native-svg
# --- or ---
$ yarn add react-native-radial-slider react-native-svg
2. Install cocoapods in the ios project
cd ios && pod install
Know more about react-native-svg

RadialSlider

  • RadialSlider has two different variants, default one and radial-circle-slider
  • RadialSlider can be used to select / set goal, vision, range etc

Default RadialSlider

๐ŸŽฌ Preview


Default RadialSlider

Usage


import React, { useState } from 'react';
import { StyleSheet, View } from 'react-native';
import { RadialSlider } from 'react-native-radial-slider';

const RadialVariant = () => {
  const [speed, setSpeed] = useState(0);

  return (
    <View style={styles.container}>
      <RadialSlider value={speed} min={0} max={200} onChange={setSpeed} />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
  },
});

export default RadialVariant;

Radial Circle Silder

๐ŸŽฌ Preview


Default RadialCircleSlider

Usage


import React, { useState } from 'react';
import { StyleSheet, View } from 'react-native';
import { RadialSlider } from 'react-native-radial-slider';

const RadialVariant = () => {
  const [speed, setSpeed] = useState(0);

  return (
    <View style={styles.container}>
      <RadialSlider
        variant={'radial-circle-slider'}
        value={speed}
        min={0}
        max={200}
        onChange={setSpeed}
      />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
  },
});

export default RadialVariant;

SpeedoMeter

The speedometer will not take user inputs, when we need to update dynamic values at that time we can use it

  • SpeedoMeter has two different variants, speedometer and speedometer-marker
  • SpeedoMeter can be used to display the speed of an internet, vehicle, fan etc

SpeedoMeter

๐ŸŽฌ Preview


Default SpeedoMeter

Usage


import React, { useState } from 'react';
import { StyleSheet, View } from 'react-native';
import { RadialSlider } from 'react-native-radial-slider';

const SpeedoMeterVariant = () => {
  const [speed, setSpeed] = useState(0);

  return (
    <View style={styles.container}>
      <RadialSlider
        variant={'speedometer'}
        value={speed}
        min={0}
        max={200}
        onChange={setSpeed}
      />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
  },
});

export default SpeedoMeterVariant;

SpeedoMeter Marker

๐ŸŽฌ Preview


Default SpeedoMeterMarker

Usage


import React, { useState } from 'react';
import { StyleSheet, View } from 'react-native';
import { RadialSlider } from 'react-native-radial-slider';

const SpeedoMeterVariant = () => {
  const [speed, setSpeed] = useState(0);

  return (
    <View style={styles.container}>
      <RadialSlider
        variant={'speedometer-marker'}
        value={speed}
        min={0}
        max={200}
        onChange={setSpeed}
      />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
  },
});

export default SpeedoMeterVariant;

Properties

Prop Default Type Description RadialSlider SpeedoMeter
min* 0 number Minimum value โœ… โœ…
max* 100 number Maximum value โœ… โœ…
value* 0 numbe Show selection upto this value โœ… โœ…
onChange* - function Callback function which fired on change in track โœ… โœ…
radius 100 number Size of component โœ… โœ…
step 1 number Step value for component โœ… โŒ
markerValue - number Show marker on specific number โœ… โœ…
title - string Title for component โœ… โŒ
subTitle Goal string Subtitle for component โœ… โŒ
unit RadilaSlider: 'kCal', SpeedoMeter: 'MB/S' string Unit for component โœ… โœ…
thumbRadius 18 number Radius for thumb โœ… โŒ
thumbColor #008ABC string Color for thumb โœ… โŒ
thumbBorderWidth 5 number Width for thumb โœ… โŒ
thumbBorderColor #FFFFFF string Border Color for thumb โœ… โŒ
markerLineSize 50 number Size of marker line โœ… โœ…
sliderWidth 18 number Width of slider โœ… โœ…
sliderTrackColor #E5E5E5 string Color of unselected slider track โœ… โœ…
lineColor #E5E5E5 string Color of unselected lines โœ… โœ…
lineSpace 3 number Space between each line โœ… โœ…
linearGradient [ { offset: '0%', color:'#ffaca6' }, { offset: '100%', color: '#EA4800' }] object Gradient color of selected track โœ… โœ…
onComplete - function Callback function which defines what to do after completion โœ… โœ…
centerContentStyle {} object Center content style โœ… โŒ
titleStyle {} object Status title container style โœ… โŒ
subTitleStyle {} object Status subtitle text style โœ… โŒ
valueStyle {} object Center value style โœ… โœ…
buttonContainerStyle {} object Button container style โœ… โŒ
leftIconStyle {} object Left Icon style โœ… โŒ
rightIconStyle {} object Right Icon style โœ… โŒ
contentStyle {} object Whole content style โœ… โœ…
unitStyle {} object Unit text style โœ… โœ…
style {} object Inner container style โœ… โœ…
openingRadian RadialSlider: Math.PI / 3 , SpeedoMeter:0.057 number Radian of component โœ… โœ…
disabled false boolean If true, buttons will be in disabled state โœ… โŒ
isHideSlider false boolean If true, slider will be hidden โœ… โœ…
isHideCenterContent false boolean If true, center content will be hidden โœ… โœ…
isHideTitle false boolean If true, title will be hidden โœ… โŒ
isHideSubtitle false boolean If true, subtitle will be hidden โœ… โŒ
isHideValue false boolean If true, value will be hidden โœ… โœ…
isHideTailText false boolean If true, tail text will be hidden โœ… โœ…
isHideButtons false boolean If true, buttons will be hidden โœ… โŒ
isHideLines false boolean If true,slider lines will be hidden โœ… โœ…
isHideMarkerLine false boolean If true, marked lines will be hidden โœ… โœ…
fixedMarker false boolean If true, marked value will be hidden โœ… โœ…
variant default string Different component variants radial-circle-slider, speedometer, speedometer-marker โœ… โœ…
onPress {} function Based on click value will be increased or decreased โœ… โŒ
stroke '#008ABC' string Color for button icon โœ… โŒ
unitValueContentStyle {} object Unit value content style โŒ โœ…
markerCircleSize 15 number Size for marker circle โŒ โœ…
markerCircleColor #E5E5E5 string Color for marker circle โŒ โœ…
markerPositionY 20 number Marker position for up and down โŒ โœ…
markerPositionX 20 number Marker position for right and left โŒ โœ…
needleBackgroundColor #A020F0 string Background color for needle โŒ โœ…
needleColor #175BAD string Color for needle โŒ โœ…
needleBorderWidth 1.5 number Width of needle border โŒ โœ…
needleHeight 30 number Height of needle โŒ โœ…
markerValueInterval 10 number Show number of value in sequence โŒ โœ…
markerValueColor #333333 string Color for marker value โŒ โœ…
strokeLinecap butt string Line terminations, can be butt, line, or square โŒ โœ…

Example

A full working example project is here Example

yarn
yarn example ios   // For ios
yarn example android   // For Android

Find this library useful? โค๏ธ

Support it by joining stargazers for this repository.โญ

๐Ÿค How to Contribute

We'd love to have you improve this library or fix a problem ๐Ÿ’ช Check out our Contributing Guide for ideas on contributing.

Bugs / Feature requests / Feedbacks

For bugs, feature requests, and discussion please use GitHub Issues

License

More Repositories

1

flutter_showcaseview

Flutter plugin that allows you to showcase your features on flutter application. ๐Ÿ‘Œ๐Ÿ”๐ŸŽ‰
Dart
1,490
star
2

SSComposeCookBook

A Collection of major Jetpack compose UI components which are commonly used.๐ŸŽ‰๐Ÿ”๐Ÿ‘Œ
Kotlin
634
star
3

SSCustomTabbar

Simple Animated tabbar with native control
Swift
582
star
4

SSCustomBottomNavigation

Animated TabBar with native control and Jetpack Navigation support..โœจ๐Ÿ”–๐Ÿš€
Kotlin
498
star
5

SSSpinnerButton

Forget about typical stereotypic loading, It's time to change. SSSpinnerButton is an elegant button with a different spinner animations.
Swift
428
star
6

flutter_credit_card

A credit card widget for Flutter application.
Dart
419
star
7

flutter_calendar_view

A Flutter package allows you to easily implement all calendar UI and calendar event functionality. ๐Ÿ‘Œ๐Ÿ”๐ŸŽ‰
Dart
416
star
8

SSffmpegVideoOperation

This is a library of FFmpeg for android... ๐Ÿ“ธ ๐ŸŽž ๐Ÿš‘
Kotlin
352
star
9

flutter_chatview

Highly customisable chat UI with reply and reaction functionality.
Dart
288
star
10

SSJetPackComposeProgressButton

SSJetPackComposeProgressButton is an elegant button with a different loading animations. ๐Ÿš€
Kotlin
285
star
11

SSImagePicker

Easy to use and configurable library to Pick an image from the Gallery or Capture an image using a Camera... ๐Ÿ“ธ
Kotlin
285
star
12

SSToastMessage

SSToastMessage is written purely in SwiftUI. It will add toast, alert, and floating message view over the top of any view. It is intended to be simple, lightweight, and easy to use. It will be a popup with a single line of code.
Swift
280
star
13

audio_waveforms

Use this plugin to generate waveforms while recording audio in any file formats supported by given encoders or from audio files. We can use gestures to scroll through the waveforms or seek to any position while playing audio and also style waveforms
Dart
277
star
14

ARKit2.0-Prototype

After Appleโ€™s introduction of ARKit 2, we have been consistently working behind to create shared-AR experiences. Our goal is to improve the utility of mobile using AR experiences.
Swift
261
star
15

react-native-story-view

A React Native component to show image and video stories โœจ ๐ŸŽ–
TypeScript
219
star
16

SSCustomEditTextOutLineBorder

Same as the Outlined text fields presented on the Material Design page but with some dynamic changes. ๐Ÿ“ ๐ŸŽ‰
Kotlin
207
star
17

Awesome-Mobile-Libraries

This repo contains all the Open-source Libraries from iOS, Android, Flutter and React-Native.โœจ
174
star
18

react-native-reactions

A React Native animated reaction picker component โœจโœจ
TypeScript
146
star
19

SSPullToRefresh

SSPullToRefresh makes PullRefresh easy to use, you can provide your own custom animations or set simple gifs on refresh view. The best feature is Lottie animations in refresh view, it uses lottie animations to render high quality animations on pull refresh. ๐ŸŽ‰๐Ÿ’ฅ
Kotlin
121
star
20

react-native-audio-waveform

React Native component to show audio waveform with ease in react native application โœจ
TypeScript
120
star
21

react-native-spinner-button

React Native button component with multiple animated spinners
JavaScript
106
star
22

SSComposeShowCaseView

SSComposeShowCaseView is a customizable show case view library in Jetpack compose which allows to showcase/highlight the particular features of the application with an engaging overlay. It also provides automatic showcase view feature with customised delay and opacity attributes. ๐ŸŽ‰๐Ÿ’ฅ
Kotlin
105
star
23

SSBiometricsAuthentication

Biometric factors allow for secure authentication on the Android platform.
Kotlin
102
star
24

react-native-animation-catalog

A collection of animated React Native components ๐ŸŒŸ๐Ÿ”ฅ
TypeScript
91
star
25

SSJetpackComposeSwipeableView

SSJetpackComposeSwipeableView is a small library which provides support for the swipeable views. You can use this in your lazyColumns or can add a simple view which contains swipe to edit/delete functionality.
Kotlin
91
star
26

SSSwiftUIGIFView

SSSwiftUIGIFView is a custom controller designed to help load GIFs in SwiftUI. It supports loading GIFs from remote URLs, is compatible with both iOS and macOS, and implements a caching mechanism to improve loading times and reduce data usage.
Swift
85
star
27

Kotlin-multiplatform-sample

A sample Kotlin Multiplatform project having native UI and shared bussiness logic on Android and iOS platforms.
Kotlin
84
star
28

SSCustomTabMenu

Customisable iOS bottom menu works like Tabbar
Swift
80
star
29

SSAndroidNeumorphicKit

Neomorphic UI kit for Android
Kotlin
72
star
30

SSCustomPullToRefresh

SSCustomPullToRefresh is an open-source library that uses UIKit to add an animation to the pull to refresh view in a UITableView and UICollectionView.
Swift
69
star
31

SSStepper

SwiftUI package for creating custom stepper with gesture controls and flexible design as per your choice.
Swift
67
star
32

SSAppUpdater

SSAppUpdater is an open-source framework that compares the current version of the app with the store version and returns the essential details of it like app URL, new app version number, new release note, etc. So you can either redirect or notify the user to update their app.
Swift
67
star
33

VonageVideoCalling_Android

Vonage Video Calling Android
Kotlin
64
star
34

SSExpandableRecylerView

Expandable Recyclerview makes it easy to integrate nested recycler view...๐Ÿ”จ ๐Ÿ“
Kotlin
59
star
35

SSCustomSideMenu

Side Menu Custom Control for iOS apps
Swift
57
star
36

react-native-skia-catalog

A collection of animated React Native Skia components ๐ŸŒŸ
TypeScript
56
star
37

SSArcSeekBar

Different type of arc seekbar. Easy to use and configure your own seekbar using all the attributes.
Kotlin
52
star
38

SSPlaceHolderTableView

SSPlaceholderTableView is Placeholder Library for different different state wise placeHolder for UITableView/UICollectionView. Check https://www.cocoacontrols.com/controls/ssplaceholdertableview
Swift
50
star
39

SSComposeOTPPinView

A custom OTP view to enter a code usually used in authentication. It includes different types of OTPViews which is easy to use and configure your own view and character of OTP using all the attributes. ๐Ÿ“ฒ ๐Ÿ”ข โœจ
Kotlin
50
star
40

react-native-tree-selection

A high-performance and lightweight tree selection library for React Native๐ŸŽ–
TypeScript
45
star
41

SSVerticalPanoramaImage

Capture stunning vertical panorama images with ease and preview them instantly on the built-in screen.
Swift
44
star
42

SSFloatingLabelTextField

Swift
44
star
43

SSLineChart

SSLineChart provides you with the additional functionality of gradient color fill which cannot be found in any library specially Watchkit Libraries.
Swift
44
star
44

SSSwiftUISpinnerButton

SSSwiftUISpinnerButton is a collection of various spinning animations for buttons in SwiftUI.
Swift
43
star
45

SSNaturalLanguage

Swift
42
star
46

react-native-photos-gallery

A React Native custom animated photo gallery component to open and view photos โœจ
TypeScript
41
star
47

react-native-country-code-select

A React Native component that allows users to select a country code โœจ ๐Ÿ”ฅ
TypeScript
41
star
48

react-native-sticky-table

React Native sticky table component to elevate the app's data presentation and visualization experience โœจ
TypeScript
40
star
49

Jetpack-compose-sample

Forget about bunch of XML files for maintaining UIs. Jetpack Compose is Androidโ€™s modern toolkit for building native UI. Here is a small example to get started.
Kotlin
38
star
50

SSMediaLibrary

Swift
38
star
51

SSCircularSlider

A simple, powerful and fully customizable circular slider, written in swift.
Swift
37
star
52

react-native-images-preview

A React Native animated custom image preview component โœจ
TypeScript
36
star
53

SSCalendarControl

SSCalendarControl is small and highly customizable calendar control written in swift.
Swift
35
star
54

SSNeumorphicKit

Swift
35
star
55

SSSwiftyGo

Swift
35
star
56

flutter_vonage_video_call_demo

This application provides demo of one to one video call using Vonage Video API. Since there is no office support for flutter from voyage, this demo uses platform channel to communicate with native voyage SDK.
Kotlin
35
star
57

SSMultiSwipeCellKit

Swift
34
star
58

SSSwiper

SSSwiper is used to create swipe gestures action inside any view just by adding a modifier to the View with various customization options
Swift
31
star
59

SS-iOS-Animations

Elevate your app's user interface with stunning and smooth animations! This library offers easy-to-use animations for both SwiftUI beginners and pros. Enhance your app with cool transitions, fun effects, and interactive touches. Integrating these animations is simpleโ€”just follow a few steps to add the code and bring your project to life.
Swift
31
star
60

Fitness-App-ARKit

Fitness App build with ARKit.
Swift
30
star
61

tesseract-OCR-iOS-demo

This prototype is to recognize text inside the image and for that it uses Tesseract OCR. The underlying Tesseract engine will process the picture and return anything that it believes is text.
Swift
30
star
62

SSStoryStatus

SSStoryStatus: Elevate your SwiftUI projects with seamless user list integration and captivating story displays. Empowering developers with effortless integration and complete UI customization, this versatile library makes showcasing stories a breeze.
Swift
30
star
63

SSSwiftUISideMenu

SSSwiftUISideMenu: Your ultimate iOS side menu companion. This customizable and intuitive library facilitates seamless navigation within your app, offering left and right panel support. Effortlessly integrate and personalize UI elements and animation styles to elevate your user experience.
Swift
27
star
64

SSInstaFeedParser

A Flutter package allows you to fetch basic data from a Instagram profile url which is public and verified.
Dart
25
star
65

react-native-graph-kit

Personalized graphs featuring customizable options for React Native app ๐Ÿ“ˆ
TypeScript
23
star
66

SSFacebookLogin

The Reusable Facebook Login Components for iOS is the easiest way to get data from Facebook.
Swift
22
star
67

SSSceneFormSdkSample

This is an Augmented Reality Android app that is made by using ARcore and Sceneform SDK. ๐Ÿ“ธ ๐ŸŽ‰
Kotlin
20
star
68

battleship_flutter_flame

Dart
20
star
69

react-native-infinite-wheel-picker

Customizable wheel picker component for React Native, enabling infinite scrolling and intuitive item selection โœจ
TypeScript
18
star
70

SSSwiftUILoader

A customisable, simple and elegant loader in SwiftUI.
Swift
15
star
71

SSCustomCameraControl

Custom camera control
Kotlin
15
star
72

Kotlin-Extensions

Library contains common extensions for Android
Kotlin
15
star
73

SSSwiftUIVideoLayerView

SSSwiftUIVideoPlayerLayer is a custom controller which helps to load video in SwiftUI.
Swift
14
star
74

SSProgressBar

Customizable progressbar
Swift
14
star
75

SSGoogleLogin

The GoogleSigninReusabelComponets for iOS is the easiest way to get data from Google .
Swift
14
star
76

CMPedometerDemo

Let's count steps using CMPedometer
Swift
14
star
77

SSAudioRecorderWithWaveForm

SSAudioRecorderWithWaveForm is recording audio with wave form. ๐ŸŽ‰๐ŸŽค
Kotlin
13
star
78

CreateFirebaseDynamicLinks

Swift
10
star
79

ios-commons

added few old helpers (need to updated) as initial version to work on
Swift
9
star
80

SSTwitterLogin

The reusable Twitter login components for iOS is the easiest way to get data from Twitter.
Swift
9
star
81

Workouts-TV-app

Swift
8
star
82

Game-With-AR

Swift
8
star
83

flutter_project_template

Dart
7
star
84

SSLinkedIn

Objective-C
7
star
85

MVVMListDemo

Swift
7
star
86

iOS-BarcodeScan

Objective-C
6
star
87

android-demos

Kotlin
5
star
88

SSSwiftUIVideoPlayerLayer

Swift
4
star
89

react-native-downloader

A audio video file downloader app with foreground and background download support
JavaScript
4
star
90

flutter_ss_placeholder_view

A Flutter package allows you to add placeholder content while loading or empty items.๐Ÿšง
Dart
4
star
91

NewsApp-RIBs

News app with Listview and Pageview using uber's RIBs Architecture
Swift
3
star
92

SwiftUI-Combine-MVVM

Swift
3
star
93

MVVMDemo

Architecture of iOS Application, Swift
Swift
2
star
94

BiometricReactNative

Biometric authentication with react-native app
JavaScript
2
star
95

DFPDemo

For showing Ad's , Swift
Swift
2
star
96

Kotlin-CoRoutines

Kotlin
2
star
97

QualityCodeSample

Swift
2
star
98

Android_Project_Setup

Kotlin
2
star
99

GoogleLogin

Swift
2
star
100

android_simform_sample_app

The sample app uses Github's GraphQL APIs to query the Simform's Github repositories and list them using compose views in the Android application.
Kotlin
2
star