react-native-swiper/index.js
guodf 2e3c812965
fix #623
Resolve ES6 and CommonJS compatibility issues
2018-01-25 23:56:27 +08:00

11 lines
279 B
JavaScript

import Swiper from './src/'
/**
* Resolve ES6 and CommonJS compatibility issues
* 1. CommonJS code
* const Swiper = require('react-native-swiper');
* 2. ES6 code
* import Swiper from 'react-native-swiper';
*/
module.exports = Swiper;
module.exports.default = Swiper;