We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 733b04c commit 1d7e47bCopy full SHA for 1d7e47b
index.js
@@ -1,13 +1,13 @@
1
-import ReactNative from 'react-native';
+import ReactNative from 'react-native'
2
3
const {
4
DeviceEventEmitter,
5
NativeAppEventEmitter,
6
Platform,
7
- NativeModules,
8
-} = React;
+ NativeModules
+} = ReactNative
9
10
-const RNZipArchive = NativeModules.RNZipArchive;
+const RNZipArchive = NativeModules.RNZipArchive
11
12
const ZipArchive = {
13
unzip (source, target) {
@@ -27,6 +27,6 @@ const ZipArchive = {
27
var emitter = Platform.OS === 'ios' ? NativeAppEventEmitter : DeviceEventEmitter
28
return emitter.addListener('zipArchiveProgressEvent', callback)
29
}
30
-};
+}
31
32
-export default ZipArchive;
+export default ZipArchive
0 commit comments