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
Copy file name to clipboardExpand all lines: README.md
+36-20Lines changed: 36 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,19 @@
2
2
3
3
Zip archive utility for react-native
4
4
5
+
> ### Important
6
+
> If you're using react-native after 0.40.0 on iOS, be sure to use > 0.1.0 of this package.
7
+
5
8
## Installation
6
9
7
10
```bash
8
11
npm install react-native-zip-archive --save
9
12
```
10
13
11
14
## Getting started - iOS
12
-
13
-
1. In Xcode, in the project navigator right click `Libraries` ➜ `Add Files to [your project's name]`
14
-
2. Go to `node_modules` ➜ `react-native-zip-archive` and add `RNZipArchive.xcodeproj`
15
-
3. Add `libRNZipArchive.a` (from 'Products' under RNZipArchive.xcodeproj) to your project's `Build Phases` ➜ `Link Binary With Libraries` phase
16
-
4. Add the `libz` library to your target
17
-
5. Look for Header Search Paths and make sure it contains both `$(SRCROOT)/../react-native/React` and `$(SRCROOT)/../../React` - mark both as recursive
18
-
6. Run your project (`CMD+R`)
19
-
20
-
Warning: If you're using [rnpm](https://github.com/rnpm/rnpm) to link this module, you also need manually link `libz` library to your target otherwise your project wouldn't compile.
15
+
```bash
16
+
react-native link react-native-zip-archive
17
+
```
21
18
22
19
## Getting started - Android
23
20
@@ -74,30 +71,49 @@ Warning: If you're using [rnpm](https://github.com/rnpm/rnpm) to link this modul
you may also want to use something like [react-native-fs](https://github.com/johanneslumpe/react-native-fs) to access the file system (check its repo for more information)
0 commit comments