You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| react-native version | react-native-zip-archive version |
9
+
| --- | --- |
10
+
| ^0.60 | ^5.0.0 |
11
+
| ^0.58 | ^4.0.0 |
12
+
| <0.58 | ^3.0.0 |
13
+
9
14
10
15
## Installation
11
16
12
17
```bash
13
18
npm install react-native-zip-archive --save
14
19
```
15
20
21
+
16
22
## Linking
17
23
18
-
### Automatically (Recommend)
24
+
For iOS, run the command below in you app's root folder once the package has been installed
19
25
20
26
````bash
21
-
react-native link react-native-zip-archive
27
+
cd ./ios && pod install
22
28
````
23
29
24
-
### Manually
25
-
26
-
#### iOS
27
-
28
-
refer to the [official guide](https://facebook.github.io/react-native/docs/linking-libraries-ios.html),
29
-
remember to also link `libz`, `libiconv` and `Security` to your target.(You can follow the tutorial on [this](http://docs.onemobilesdk.aol.com/ios-ad-sdk/adding-frameworks-xcode.html))
30
-
31
-
#### Android
32
-
33
-
* Edit `android/settings.gradle` to look like this (without the +):
34
-
35
-
```diff
36
-
rootProject.name = 'MyApp'
37
-
38
-
include ':app'
39
-
40
-
+ include ':react-native-zip-archive'
41
-
+ project(':react-native-zip-archive').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-zip-archive/android')
42
-
```
43
-
44
-
* Edit `android/app/build.gradle` (note: **app** folder) to look like this:
45
-
46
-
```diff
47
-
apply plugin: 'com.android.application'
48
-
49
-
android {
50
-
...
51
-
}
52
-
53
-
dependencies {
54
-
compile fileTree(dir: 'libs', include: ['*.jar'])
55
-
compile 'com.android.support:appcompat-v7:23.0.0'
56
-
compile 'com.facebook.react:react-native:0.16.+'
57
-
+ compile project(':react-native-zip-archive')
58
-
}
59
-
```
60
-
61
-
* For react-native blew 0.19.0
62
-
- Edit your `MainActivity.java` (deep in `android/app/src/main/java/...`) to look like this (note **two** places to edit):
0 commit comments