react-native-swiper icon indicating copy to clipboard operation
react-native-swiper copied to clipboard

How to disable prev swipe and prev button only next i want with swipe and next button

Open dwivediamit opened this issue 8 years ago • 1 comments

<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 avatar Jun 13 '18 07:06 dwivediamit

@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)
  }

akkravikumar avatar Mar 28 '19 09:03 akkravikumar