Skip to content

kiok46/react-native-multi-toggle-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 iconName={'facebook'} onPress={() => console.log("Facebook tapped!")}/>
  <MultiToggleSwitch.Item iconName={'twitter'}/>
  <MultiToggleSwitch.Item iconName={'instagram'} />
  <MultiToggleSwitch.Item iconName={'github'}/>
</MultiToggleSwitch>

TODO

  • Example
  • Able to use all icons(only FontAwesome Supported)

Releases

No releases published

Packages

No packages published