Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bluebasejs/plugin-native-web-swiper


https://github.com/bluebasejs/plugin-native-web-swiper

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        




plugin-native-web-swiper


swiper with native and web support



## API

This plugin is forked from [react-native-web-plugin](https://www.npmjs.com/package/react-native-web-swiper).
You can find the docs for the available props from the link given above. There are three aditional props in this plugin

### **Additional Props**:

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

this._swiper = c}
index={0}
showDots={false}
showNextPrev={false}
>
{
//pass false tp move Next
this._swiper.moveUpDown(false);
}} />
{
//pass true to move back
this._swiper.moveUpDown(true);
}} />

## 🤝 Compatibility

| 🌏 Web | 🖥 Electron | 📱 React Native |
| :----: | :---------: | :-------------: |
| ✅ | ✅ | ✅ |

## Docs

- [Storybook](https://BlueBaseJS.github.io/plugin-native-web-swiper/storybook/)
- [API Docs](https://BlueBaseJS.github.io/plugin-native-web-swiper/)