A React component for swipeable views
npm install react-swipeable-views-native

> A React Native component for swipeable views.
``sh`
npm install --save react-swipeable-views-nativeor
yarn add react-swipeable-views-native
`jsx
import React from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
import SwipeableViews from 'react-swipeable-views-native';
// There is another version using the scroll component instead of animated.
// I'm unsure which one give the best UX. Please give us some feedback.
// import SwipeableViews from 'react-swipeable-views-native/lib/SwipeableViews.scroll';
const styles = StyleSheet.create({
slideContainer: {
height: 100,
},
slide: {
padding: 15,
height: 100,
},
slide1: {
backgroundColor: '#FEA900',
},
slide2: {
backgroundColor: '#B3DC4A',
},
slide3: {
backgroundColor: '#6AC0FF',
},
text: {
color: '#fff',
fontSize: 16,
},
});
const MyComponent = () => (
slide n°1
slide n°2
slide n°3
);
export default MyComponent;
``
This project is licensed under the terms of the
MIT license.