import React from 'react' import { StyleSheet, Text, View } from 'react-native' import Swiper from '../swiper.dist' const styles = StyleSheet.create({ wrapper: { }, slide1: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#9DD6EB' }, slide2: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#97CAE5' }, slide3: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#92BBD9' }, text: { color: '#fff', fontSize: 30, fontWeight: 'bold' } }) export default class BasicSample extends React.Component { _onMomentumScrollEnd(e, state, context) { // you can get `state` and `this`(ref to swiper's context) from params console.log(state, context.state) } render() { return ( Hello Swiper Beautiful And simple ) } }