react-native-swiper
react-native-swiper copied to clipboard
How to disable prev swipe and prev button only next i want with swipe and next button
<Swiper showsButtons={true} loop={false} index={0} onIndexChanged={(index) => this.statusChange(index)} showsPagination={false} prevButton={false} >
<Appointment_status navigation={this.props.navigation} />
<Appointment_statuspending navigation={this.props.navigation} />
<Arrived navigation={this.props.navigation} />
<Completed navigation={this.props.navigation} />
<Appointment_complete navigation={this.props.navigation} />
</Swiper>
@dwivediamit scrollEnabled = {false}
<Swiper loop={false}
ref={(component) => { this.swiper = component; }}
showsPagination={false}
scrollEnabled={false} // Use this for disable swipe.
index={0}>
.....
</Swiper>
onPress=()=> {
this.swiper.scrollBy(2)
}