Skip to content

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

Description

@manenga

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions