Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How could I add an onPress function to update the selected tab? #4

Open
manenga opened this issue May 1, 2020 · 0 comments
Open

How could I add an onPress function to update the selected tab? #4

manenga opened this issue May 1, 2020 · 0 comments

Comments

@manenga
Copy link

manenga commented May 1, 2020

Hi,

I like your segment control, it's really cool! I see it works best for static content but I'm trying to use it to serve dynamic content. I figured, adding an onPress function to it will help me update the selected index and thus be able to change state. I'm new to react so I'm struggling to figure this out. Any ideas on how I can achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant