scottmgerstl
scottmgerstl

Reputation: 765

How to create a custom switch in Nativescript

I'm trying to figure out how to implement this design in NativeScript for android. Which apis should I be accessing or is there a package I can use?

switch mockup

Upvotes: 2

Views: 3678

Answers (1)

Zoidy
Zoidy

Reputation: 384

Brad Martin has a tutorial on how to do something very similar.

Easy way would be to have a clickable <Image> which would show different image based on it's checked property. Like this example on official NativeScript repo.

Upvotes: 1

Related Questions