Skip to content

Commit

Permalink
Merge pull request leecade#717 from guodf/master
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayZoneYour authored Jun 26, 2019
2 parents c99f80a + 2e3c812 commit c90de7b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
import Swiper from './src/'
module.exports = Swiper
/**
* 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;

0 comments on commit c90de7b

Please sign in to comment.