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.
- Clone Repo (or copy code/dependencies).
- Run
NPM InstallorYarn Addto install dependencies.
- 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]tooutputRange:[1, 0].