Skip to content

This is just a simple component built to be a toggle between 2 options. 3 or more are supported but may not look great on phones.

Notifications You must be signed in to change notification settings

bill-pairaktaridis/react-native-text-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-text-toggle

How it looks

Why does this exist?

I wanted a component that does exactly this and figured I could also open source it to help others

To install simply run

npm install text-toggler

or

yarn add text-toggler

To use

import { TextToggler } from 'text-toggler'

<TextToggler 
options={['option 1', 'option 1',]} 
onToggle={(value) => console.log(value)} />

You can also customize the look by using the following props

containerStyle

textStyle

About

This is just a simple component built to be a toggle between 2 options. 3 or more are supported but may not look great on phones.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published