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
+61-40Lines changed: 61 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,13 +28,12 @@ The [PSPDFKit SDK](https://pspdfkit.com/) is a framework that allows you to view
28
28
#### Requirements
29
29
30
30
- Xcode 10.2.1
31
-
- PSPDFKit 8.4.0 for iOS or later
32
-
- react-native >= 0.59.9
31
+
- PSPDFKit 8.4.2 for iOS or later
32
+
- react-native >= 0.60.3
33
+
- CocoaPods >= 1.7.4
33
34
34
35
#### Getting Started
35
36
36
-
**Note:** If you want to integrate PSPDFKit using CocoaPods, use [these instructions](ios/cocoapods.md) instead.
37
-
38
37
Let's create a simple app that integrates PSPDFKit and uses the `react-native-pspdfkit` module.
39
38
40
39
1. Make sure `react-native-cli` is installed: `yarn global add react-native-cli`
@@ -43,30 +42,56 @@ Let's create a simple app that integrates PSPDFKit and uses the `react-native-ps
43
42
4. Install `react-native-pspdfkit` from GitHub: `yarn add github:PSPDFKit/react-native`
44
43
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.)
45
44
6. Link module `react-native-pspdfkit`: `react-native link react-native-pspdfkit`.
46
-
7. Create the folder `ios/PSPDFKit` and copy `PSPDFKit.framework` and `PSPDFKitUI.framework` into it.
47
-
8. Open `ios/YourApp.xcodeproj` in Xcode: `open ios/YourApp.xcodeproj`
48
-
9. Make sure the deployment target is set to 11.0 or higher:
12. Embed `PSPDFKit.framework` and `PSPDFKitUI.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:
7. Open `ios/Podile` in a text editor: `open ios/Podfile`, update the platform to iOS 11, and add your CocoaPods URL.
66
46
67
-
14. 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:
11. Change "View controller-based status bar appearance" to `YES` in `Info.plist`:
91
+

92
+
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:
68
93

69
-
15. 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.)
94
+
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.)
0 commit comments