All Projects → kiok46 → react-native-multi-toggle-switch

kiok46 / react-native-multi-toggle-switch

Licence: MIT license
MultiToggle Switch for React-Native

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-multi-toggle-switch

split-on-first
Split a string on the first occurrence of a given separator
Stars: ✭ 68 (+300%)
Mutual labels:  npm-package
MD UISwitch
Uniformly encapsulate different types of switches as user input devices
Stars: ✭ 33 (+94.12%)
Mutual labels:  switch
CustomSwitch
Custom Switch package created in Flutter
Stars: ✭ 56 (+229.41%)
Mutual labels:  switch
create-xo
Add XO to your project
Stars: ✭ 41 (+141.18%)
Mutual labels:  npm-package
ngx-deploy-npm
Publish your libraries to NPM with just one command
Stars: ✭ 70 (+311.76%)
Mutual labels:  npm-package
vue-checkbox-switch
A Vue component for checkbox's switch style
Stars: ✭ 36 (+111.76%)
Mutual labels:  switch
googlesheetstojson
An npm package to read Google Sheets data and convert it to JSON without publishing it to the web
Stars: ✭ 24 (+41.18%)
Mutual labels:  npm-package
ionic-image-upload
Ionic Plugin for Uploading Images to Amazon S3
Stars: ✭ 26 (+52.94%)
Mutual labels:  npm-package
LimitlessUI
Awesome C# UI library that highly reduced limits of your application looks
Stars: ✭ 41 (+141.18%)
Mutual labels:  switch
odoc
Next.js based Static 📓 Documentation Site Generator
Stars: ✭ 17 (+0%)
Mutual labels:  npm-package
nxquake
TyrQuake ported to Nintendo Switch
Stars: ✭ 17 (+0%)
Mutual labels:  switch
weak-merge
🔗 A module for merging WeakSets and WeakMaps.
Stars: ✭ 20 (+17.65%)
Mutual labels:  npm-package
SwitchCaseGenerator
An Xcode Source Editor Extension that generates a swift switch case statement based on selected enum cases
Stars: ✭ 63 (+270.59%)
Mutual labels:  switch
Mirage
Reimplementation of the Nintendo Switch firmware
Stars: ✭ 40 (+135.29%)
Mutual labels:  switch
git-profile
↔️ Git Profile allows you to switch between multiple user profiles in git repositories
Stars: ✭ 41 (+141.18%)
Mutual labels:  switch
ostrio-analytics
📊 Visitor's analytics tracking code for ostr.io service
Stars: ✭ 14 (-17.65%)
Mutual labels:  npm-package
js-id-number
JavaScript ID Number Toolkit | A collection of identification number validators with uniform interfaces for JavaScript.
Stars: ✭ 22 (+29.41%)
Mutual labels:  npm-package
node.js-chatbot
Zoom Node.js Chatbot Library
Stars: ✭ 19 (+11.76%)
Mutual labels:  npm-package
impression
👀Element view notifier
Stars: ✭ 77 (+352.94%)
Mutual labels:  npm-package
img2gcode
convert jpg, png,gif to gcode with nodejs and jimp
Stars: ✭ 31 (+82.35%)
Mutual labels:  npm-package

react-native-multi-toggle-switch

MultiToggle Switch for React-Native

Installation

npm i react-native-multi-toggle-switch --save

Link react-native-vector-icons native dependencies to your project with:

react-native link react-native-vector-icons

or just:

react-native link

Usage

First step: import the component:

import MultiToggleSwitch from 'react-native-multi-toggle-switch';

Second step: Use it.

<MultiToggleSwitch>
  <MultiToggleSwitch.Item onPress={() => console.log("Facebook tapped!")}>
      <Icon name={'facebook'} size={30} />
  </MultiToggleSwitch.Item>
  <MultiToggleSwitch.Item primaryColor={'#CF4647'}>
      <Icon name={'twitter'} size={30} />
  </MultiToggleSwitch.Item>
  <MultiToggleSwitch.Item>
      <Icon name={'instagram'} size={30}/>
  </MultiToggleSwitch.Item>
  <MultiToggleSwitch.Item primaryColor={'orange'}>
      <Icon name={'github'} size={30} />
  </MultiToggleSwitch.Item>
</MultiToggleSwitch>

API

Property Type Default Description
defaultActiveIndex number 0 Item index which should be active when the component renders
primaryColor string #124E96 Color of icon when in non-active state & Color of icon background when in active state
secondaryColor string white Color of icon when in active state & Color of icon background when in non-active state
itemContainer style null Style of item container
activeContainerStyle style null Style of item container when active
itemsContainer style null Style of container containing all items
itemsContainerBackgroundStyle style null Background Style of container containing items
onPress function Function to be called as soon as the user presses any item

TODO

  • Example
  • Able to use all icons(only FontAwesome Supported)
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].