React-native-swiper: How to disable prev swipe and prev button only next i want with swipe and next button

Created on 13 Jun 2018  路  1Comment  路  Source: leecade/react-native-swiper

        <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>

Most helpful comment

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

>All comments

@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)
  }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

wrannaman picture wrannaman  路  3Comments

agzuniverse picture agzuniverse  路  3Comments

commit-master picture commit-master  路  3Comments

AndrewSouthpaw picture AndrewSouthpaw  路  3Comments

ruben-kasaz picture ruben-kasaz  路  3Comments