Skip to content

Commit 122b895

Browse files
authored
Merge pull request #265 from PSPDFKit/rad/update-integration-steps-for-auto-linking
Update iOS integration steps for auto linking
2 parents 1e501a8 + 62685ac commit 122b895

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ The [PSPDFKit SDK](https://pspdfkit.com/) is a framework that allows you to view
2929

3030
#### Requirements
3131

32-
- Xcode 10.2.1
33-
- PSPDFKit 8.4.2 for iOS or later
34-
- react-native >= 0.60.3
35-
- CocoaPods >= 1.7.4
32+
- Xcode 10.3
33+
- PSPDFKit 8.5.1 for iOS or later
34+
- react-native >= 0.60.4
35+
- CocoaPods >= 1.7.5
3636

3737
#### Getting Started
3838

@@ -43,8 +43,7 @@ Let's create a simple app that integrates PSPDFKit and uses the `react-native-ps
4343
3. Step into your newly created app folder: `cd YourApp`
4444
4. Install `react-native-pspdfkit` from GitHub: `yarn add github:PSPDFKit/react-native`
4545
5. Install all the dependencies for the project: `yarn install`. (Because of a [bug](https://github.com/yarnpkg/yarn/issues/2165) you may need to clean `yarn`'s cache with `yarn cache clean` before.)
46-
6. Link module `react-native-pspdfkit`: `react-native link react-native-pspdfkit`.
47-
7. Open `ios/Podile` in a text editor: `open ios/Podfile`, update the platform to iOS 11, and add your CocoaPods URL.
46+
6. Open `ios/Podile` in a text editor: `open ios/Podfile`, update the platform to iOS 11, and add your CocoaPods URL.
4847

4948
```diff
5049
- platform :ios, '9.0'
@@ -85,15 +84,15 @@ target 'YourApp' do
8584
end
8685
```
8786

88-
8. `cd ios` then run `pod install`.
89-
9. Open `YourApp.xcworkspace` in Xcode: `open YourApp.xcworkspace`.
90-
10. Make sure the deployment target is set to 11.0 or higher:
87+
7. `cd ios` then run `pod install`.
88+
8. Open `YourApp.xcworkspace` in Xcode: `open YourApp.xcworkspace`.
89+
9. Make sure the deployment target is set to 11.0 or higher:
9190
![Deployment Target](screenshots/deployment-target.png)
92-
11. Change "View controller-based status bar appearance" to `YES` in `Info.plist`:
91+
10. Change "View controller-based status bar appearance" to `YES` in `Info.plist`:
9392
![View Controller-Based Status Bar Appearance](screenshots/view-controller-based-status-bar-appearance.png)
94-
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:
93+
11. 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:
9594
![Adding PDF](screenshots/adding-pdf.png)
96-
13. Replace the default component from `App.js` with a simple touch area to present the bundled PDF. (Note that you can also use a [Native UI Component](#native-ui-component) to show a PDF.)
95+
12. Replace the default component from `App.js` with a simple touch area to present the bundled PDF. (Note that you can also use a [Native UI Component](#native-ui-component) to show a PDF.)
9796

9897
```javascript
9998
import React, { Component } from "react";

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-pspdfkit",
3-
"version": "1.25.2",
3+
"version": "1.25.3",
44
"description": "A React Native module for the PSPDFKit library.",
55
"keywords": [
66
"react native",

samples/Catalog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Catalog",
3-
"version": "1.25.2",
3+
"version": "1.25.3",
44
"private": true,
55
"scripts": {
66
"start": "react-native start",

0 commit comments

Comments
 (0)