Skip to content

Commit ef4a78c

Browse files
authored
Merge pull request #17 from PSPDFKit/rad/fix-ios-integration
Updated the integration instructions and requirements for iOS
2 parents 9585e22 + b320a92 commit ef4a78c

File tree

5 files changed

+10
-313
lines changed

5 files changed

+10
-313
lines changed

PSPDFKit/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
### iOS
44

55
#### Requirements
6-
- Xcode 8.3.2
7-
- PSPDFKit >=6.6
8-
- react-native >= 0.41.2
6+
- Xcode 8.3.3
7+
- PSPDFKit >=6.8
8+
- react-native >= 0.46.4
99

1010
#### Getting Started
1111

12-
Lets create a simple app that integrates `PSPDFKit.framework` and uses the `react-native-pspdfkit` module.
12+
**Note:** If you want to integrate PSPDFKit using CocoaPods, use [these instructions](ios/cocoapods.md) instead.
13+
14+
Let's create a simple app that integrates `PSPDFKit.framework` and uses the `react-native-pspdfkit` module.
1315

1416
1. Make sure `react-native-cli` is installed: `yarn global add react-native-cli`
1517
2. Create the app with `react-native init YourApp`.
@@ -22,15 +24,13 @@ Lets create a simple app that integrates `PSPDFKit.framework` and uses the `reac
2224
![Deployment Target](screenshots/deployment-target.png)
2325
9. Change "View controller-based status bar appearance" to `YES` in `Info.plist`:
2426
![View Controller-Based Status Bar Appearance](screenshots/view-controller-based-status-bar-appearance.png)
25-
10. Open `node_modules/react-native-pspdfkit/ios` and drag and drop `RCTPSPDFKit.xcodproj` into the YourApp Xcode project:
26-
![Project Dependency](screenshots/project-dependency.png)
27-
11. Link with the `libRCTPSPDFKit.a` static library:
27+
10. Link with the `libRCTPSPDFKit.a` static library (if `libRCTPSPDFKit.a` is already there but greyed out, delete it and link it again):
2828
![Linking Static Library](screenshots/linking-static-library.png)
29-
12. Embed `PSPDFKit.framework` by drag and dropping it into the "Embedded Binaries" section of the "YourApp" target (Select "Create groups"). This will also add it to the "Linked Framworks and Libraries" section:
29+
11. Embed `PSPDFKit.framework` by drag and dropping it into the "Embedded Binaries" section of the "YourApp" target (Select "Create groups"). This will also add it to the "Linked Framworks and Libraries" section:
3030
![Embedding PSPDFKit](screenshots/embedding-pspdfkit.png)
31-
13. Add a PDF by drag and dropping it into your Xcode project (Select "Create groups" and add to target "YourApp"). This will add the document to the "Copy Bundle Resources" build phase:
31+
12. Add a PDF by drag and dropping it into your Xcode project (Select "Create groups" and add to target "YourApp"). This will add the document to the "Copy Bundle Resources" build phase:
3232
![Adding PDF](screenshots/adding-pdf.png)
33-
14. Replace the default component from `index.ios.js` with a simple touch area to present the bundled PDF:
33+
13. Replace the default component from `index.ios.js` with a simple touch area to present the bundled PDF:
3434

3535
```javascript
3636
import React, { Component } from 'react';

0 commit comments

Comments
 (0)