Skip to content

Ebaneck/react-native-simple-select-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Select button component for react-native

Resources

License

Stars

Watchers

Forks

Packages

No packages published