Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.53 KB

File metadata and controls

57 lines (39 loc) · 1.53 KB

react-native-simple-select-button

npm npm runs with expo

A simple slightly customizable react native select button I created while learning react native basics. This module was created during the confinement period and the goal was to make it work ;)

Try out the demo on Expo Snack

Usage

Simple select button component

Basic Usage

import { AntDesign } from '@expo/vector-icons'
import SimpleSelectButton from 'react-native-simple-select-button';

<SimpleSelectButton
  text="Button 1"
  textSize={14}
  iconName="checkcircleo"
  iconColor="#fff"
  iconSize={14}
  buttonDefaultColor="#e5e5e5"
  buttonSelectedColor="#ff9c5b"
  textDefaultColor="#333"
  textSelectedColor="#fff"
  isChecked={true}
  onPress={() => {}}
/>

Install

# install module
yarn add react-native-simple-select-button

Peer dependencies

Important! You need to install them

"react-native-vector-icons": ">= 7.1.0",

Contribution

PR is welcome!

Todo: Add test