We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Do we have something like "enabled={false}" to disable user interaction. <SegmentedControlTab values={['OPTION 1', 'OPTION 2',]} enabled={false} selectedIndex={this.state.selectedIndex} onTabPress={this.handleIndexChange} tabStyle={{ backgroundColor: 'white',marginTop: Platform.OS === 'ios' ? 15 : 10,borderColor: 'rgb(48,140,247)',height: 50,}} borderRadius={30} tabTextStyle={{ fontSize: 15,textAlign: 'left',color: 'rgb(48,140,247)',fontWeight: '500',marginBottom: 5, }} />
The text was updated successfully, but these errors were encountered:
What do you mean by "user interaction"?
Sorry, something went wrong.
As long as you don't handle onTabPress callback and change the selectedIndex prop value, you can skip user interaction with the segment controller.
onTabPress
selectedIndex
No branches or pull requests
Do we have something like "enabled={false}" to disable user interaction.
<SegmentedControlTab
values={['OPTION 1', 'OPTION 2',]}
enabled={false}
selectedIndex={this.state.selectedIndex}
onTabPress={this.handleIndexChange}
tabStyle={{ backgroundColor: 'white',marginTop: Platform.OS === 'ios' ? 15 : 10,borderColor: 'rgb(48,140,247)',height: 50,}}
borderRadius={30}
tabTextStyle={{ fontSize: 15,textAlign: 'left',color: 'rgb(48,140,247)',fontWeight: '500',marginBottom: 5, }}
/>
The text was updated successfully, but these errors were encountered: