Skip to content

danial24/react-native-web-acute-swiper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API

This plugin is forked from react-native-web-plugin. You can find the docs for the available props from the link given above. There are three aditional props in this plugin

Additional Props:

rebound(number): This will handle the bounciness or rebound behavior of swiper. The default value is 0.

scrollEnabled(boolean): This will block the transition on swipe.

showDots(boolean): This will control the visibilty of bottom navigation dots View.

showNextPrev(boolean): There are next and prev buttons pre-rendered on the screen. You can control the visibility of those buttons with this prop.

Usage

Here is a code snipet using all the above mentioned props:

<Swiper
   scrollEnabled={false}
   ref={(c) => this._swiper = c}
   index={0}
   showDots={false}
   showNextPrev={false}
>
   <ComponentOne moveNext={() => {
       //pass false tp move Next
       this._swiper.moveUpDown(false);
   }} />
   <ComponentTwo navigateBack={() => {
       //pass true to move back
       this._swiper.moveUpDown(true);
   }} />
</Swiper>

🤝 Compatibility

🌏 Web 🖥 Electron 📱 React Native

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors