All Projects → testshallpass → react-native-simple-stepper

testshallpass / react-native-simple-stepper

Licence: MIT License
A super simple react-native implementation of the UIStepper control from iOS.

Programming Languages

javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language
Starlark
911 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to react-native-simple-stepper

printrboardmodernmarlin
Printrboard and Modern Marlin
Stars: ✭ 55 (-45%)
Mutual labels:  simple
Chocolater
Chocolater is simply a PowerShell code generator and it was conceived in order to facilitate the selection and installation of your favorite applications in one go.
Stars: ✭ 26 (-74%)
Mutual labels:  simple
gunstore.io
Store your data in Gun DB by sending simple HTTP requests - based on jsonstore.io 💾 🚀
Stars: ✭ 32 (-68%)
Mutual labels:  simple
ngx-copilot
🏆 The most expected has arrived, a package for Angular that facilitates us to improve the experience of our users when guiding them in our interface
Stars: ✭ 61 (-39%)
Mutual labels:  stepper
toro
Tree oriented routing
Stars: ✭ 116 (+16%)
Mutual labels:  simple
simple-blog-engine-for-asp-net-core
A simple blog engine for ASP.NET Core developers.
Stars: ✭ 15 (-85%)
Mutual labels:  simple
simple-image-classifier
Simple image classifier microservice using tensorflow and sanic
Stars: ✭ 22 (-78%)
Mutual labels:  simple
SimpleCore
.NET C# common/utilities library
Stars: ✭ 11 (-89%)
Mutual labels:  simple
QtNotepad
Super lightweight and super simple notepad application
Stars: ✭ 50 (-50%)
Mutual labels:  simple
ministaller
Lightweight installer/updater for portable desktop applications
Stars: ✭ 15 (-85%)
Mutual labels:  simple
apps-script-db
A key-value database by Google Apps Script
Stars: ✭ 20 (-80%)
Mutual labels:  simple
WikiQA
Very Simple Question Answer System using Chinese Wikipedia Data
Stars: ✭ 24 (-76%)
Mutual labels:  simple
simple-workflow
Laravel simple implementation of a complete workflow system, allowing you to focus on your business logic and letting the package do the necessary work to make your workflow system work and easy to customize
Stars: ✭ 58 (-42%)
Mutual labels:  simple
sol
Lightweight MQTT broker, written from scratch. IO is handled by a super simple event loop based upon the most common IO multiplexing implementations.
Stars: ✭ 72 (-28%)
Mutual labels:  simple
munich-scripts
Some useful scripts simplifying bureaucracy
Stars: ✭ 105 (+5%)
Mutual labels:  simple
pasthis
Simple stupid pastebin
Stars: ✭ 36 (-64%)
Mutual labels:  simple
AndroidBatteryStats
Displays all battery stats of an Android device using broadcast receiver.
Stars: ✭ 20 (-80%)
Mutual labels:  simple
HACKTOBERFEST2021 INSPIRATION
😎A Hacktoberfest-2021 Contribution Repository For Beginners😎...Simplest Repo for Beginners👨‍💻👨‍💻👨‍💻...Add your Profile Details, Photo and Inspirational Quote 🙌🙌🙌& There you go to do your first PR❤❤❤
Stars: ✭ 30 (-70%)
Mutual labels:  simple
MultiStateToggleButton
Android's ToggleButton offers only two states, MultiStateToggleButton fixes this by offering as many states depending on the number of drawable resources passed in.
Stars: ✭ 20 (-80%)
Mutual labels:  simple
stringify.me
Quick and Easy Profiles (No Login Required)
Stars: ✭ 52 (-48%)
Mutual labels:  simple

react-native-simple-stepper

Platform npm version npm version License CI

A simple react-native implementation of the UIStepper control from iOS. To note, customization is available, see Props for more info.

Table of contents

Installation

  • yarn add react-native-simple-stepper
  • npm install react-native-simple-stepper --save

Usage

import React, {useState} from 'react';
import {SimpleStepper} from 'react-native-simple-stepper';

const App = () => {
  const [value, setValue] = useState(0);
  return <SimpleStepper valueChanged={(newValue) => setValue(newValue)} />;
};

export default App;

Using Text Position

First, set prop showText to true. Second, set prop textPosition to be left, center or right (default: center). Third, profit. It will render as a <Text/> component by default or you can override it with renderText prop. Example layouts:

Left Center Right
screenshot screenshot screenshot

Props

Values

Name Type Description Default
initialValue Number initial value 0
minimumValue Number minimum value 0
maximumValue Number maximum value 10
stepValue Number step value (ex. increment by 10) 1
incrementImage String or Number network or local image require('./assets/increment.png')
decrementImage String or Number network or local image require('./assets/decrement.png')
activeOpacity Number touch opacity 0.4
disabledOpacity Number when step button is disabled 0.5
disabled Boolean stepper disable state false
wraps Boolean whether or not it wraps. more info false
showText Boolean whether or not to show text component false
textPosition String placement of the text component center

Functions

Name Type Description Default
valueChanged Function invoked when value changes () => {}
onMin Function invoked when value reaches minimumValue () => {}
onMax Function invoked when value reaches maximumValue () => {}
onIncrement Function invoked each time value increments () => {}
onDecrement Function invoked each time value decrements () => {}
renderDecrementImage Function used to override decrement image component undefined
renderIncrementImage Function used to override increment image component undefined
renderDecrementStep Function used to override decrement step component undefined
renderIncrementStep Function used to override increment step component undefined
renderText Function used to override text component when showText is true (defaults to Text/>) undefined

Styles

Name Type Description Default
textStyle Object text component style { padding: 8, fontSize: 20, fontWeight: 'bold', color: 'blue' }
containerStyle Object container component style { backgroundColor: 'transparent', flexDirection: 'row', borderWidth: 2, borderRadius: 8, overflow: 'hidden', alignItems: 'center', borderColor: 'blue' }
separatorStyle Object separator component style { width: StyleSheet.hairlineWidth, backgroundColor: 'blue', height: '100%' }
incrementStepStyle Object increment step component style { padding: 8 }
decrementStepStyle Object decrement step component style { padding: 8 }
incrementImageStyle Object increment image component styles { height: 36, width: 36 }
decrementImageStyle Object decrement image component styles { height: 36, width: 36 }
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].