Skip to content

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

Open
@manenga

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?

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