Open Nexengineer opened 6 years ago
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.
Hi @Nexengineer,
On your event handler, you can access the selected index with event.nativeEvent.selected
event.nativeEvent.selected
e.g.
handleTabSelect(event) { this.setState({ selectedTab: event.nativeEvent.selected }); }
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.