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

Find index Pressed #9

Open
Nexengineer opened this issue Apr 18, 2018 · 1 comment
Open

Find index Pressed #9

Nexengineer opened this issue Apr 18, 2018 · 1 comment

Comments

@Nexengineer
Copy link

Hi,

Really sorry to bother you, and thanks for building this component. Please can you share the code for finding the index Pressed on segmented slider. I am quite new to React Native.

@oldtinroof
Copy link

oldtinroof commented Jul 22, 2018

Hi @Nexengineer,

On your event handler, you can access the selected index with event.nativeEvent.selected

e.g.

handleTabSelect(event) {
    this.setState({ selectedTab: event.nativeEvent.selected });
  }

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

2 participants