maxs15 / react-native-spinkit

A collection of animated loading indicators for React Native
MIT License
2.36k stars 300 forks source link

No `export default` of Component in index.js #91

Open derrickbeining opened 6 years ago

derrickbeining commented 6 years ago

I noticed that index.js is using module.exports = SpinKit rather than export default SpinKit. Is there a reason for this? Or can we switch it to using the ES modules syntax? My linter can't resolve the default import because there's not default export. Small issue, but don't see why we can't do it since SpinKit is already written using import rather than require

jpaas commented 5 years ago

This is the lint rule that fails for me: https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/default.md