var React = require('react-native') var Swiper = require('./') var { StyleSheet, Text, View, } = React var 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', } }) var swiper = React.createClass({ _onMomentumScrollEnd: function (e, state, context) { // you can get `state` and `this`(ref to swiper's context) from params console.log(state, context.state) }, render: function() { return ( Hello Swiper Beautiful And simple ) } }) module.exports = swiper