Skip to content

jamielife/react-native-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Lightbulb Toggle

rn-nb-toggle.mp4

Simple react native toggle using React Native. Package uses Native Base & Material Icons, however any alternative should work. See Snack Code.

Installation

  1. Clone Repo (or copy code/dependencies).
  2. Run NPM Install or Yarn Add to install dependencies.

Notes

  • Any alternative to Native Base should work, however I have not tested this. You should be able to test easily by editing here.
  • Any icons should work as well, though currently the outline is set to always remain visible while the "yellow" animation happens behind it. To have them fade in/out respectively you'd need to change outputRange:[1, 1] to outputRange:[1, 0].

Releases

No releases published

Packages

No packages published