Browse Source

Fix commonJS imports

Mathieu Acthernoene 7 years ago
parent
commit
cfa6577d93
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      index.js
  2. 1
    1
      lib/permissions.android.js
  3. 1
    1
      lib/permissions.ios.js

+ 1
- 1
index.js View File

@@ -1,4 +1,4 @@
1 1
 // @flow
2 2
 
3 3
 import Permissions from './lib/permissions'
4
-export { Permissions as default }
4
+export default Permissions

+ 1
- 1
lib/permissions.android.js View File

@@ -114,4 +114,4 @@ class ReactNativePermissions {
114 114
     )
115 115
 }
116 116
 
117
-module.exports = new ReactNativePermissions()
117
+export default new ReactNativePermissions()

+ 1
- 1
lib/permissions.ios.js View File

@@ -104,4 +104,4 @@ class ReactNativePermissions {
104 104
     )
105 105
 }
106 106
 
107
-module.exports = new ReactNativePermissions()
107
+export default new ReactNativePermissions()