MultiToggle Switch for React-Native
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
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>
- Example
- Able to use all icons(only FontAwesome Supported)