react-swipeable-views-native
A React Native component for swipeable views.
Installation
npm install --save react-swipeable-views-native# or yarn add react-swipeable-views-native
Usage
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; const MyComponent = <SwipeableViews => <View => <Text => slide n°1 </Text> </View> <View => <Text => slide n°2 </Text> </View> <View => <Text => slide n°3 </Text> </View> </SwipeableViews>; ;
License
This project is licensed under the terms of the MIT license.