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
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ The [PSPDFKit SDK](https://pspdfkit.com/) is a framework that allows you to view
19
19
20
20
#### Requirements
21
21
22
-
- Xcode 9.3
23
-
- PSPDFKit 7 for iOS
24
-
- react-native >= 0.48.4
22
+
- Xcode 9.4
23
+
- PSPDFKit 7.6 for iOS or later
24
+
- react-native >= 0.55.4
25
25
26
26
#### Getting Started
27
27
@@ -33,28 +33,29 @@ Let's create a simple app that integrates PSPDFKit and uses the `react-native-ps
33
33
2. Create the app with `react-native init YourApp`.
34
34
3. Step into your newly created app folder: `cd YourApp`
35
35
4. Install `react-native-pspdfkit` from GitHub: `yarn add github:PSPDFKit/react-native`
36
-
5. Link module `react-native-pspdfkit`: `react-native link react-native-pspdfkit`
37
-
6. Create the folder `ios/PSPDFKit` and copy `PSPDFKit.framework` and `PSPDFKitUI.framework` into it.
38
-
7. Open `ios/YourApp.xcodeproj` in Xcode: `open ios/YourApp.xcodeproj`
39
-
8. Make sure the deployment target is set to 9.0 or higher:
36
+
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.)
37
+
6. Link module `react-native-pspdfkit`: `react-native link react-native-pspdfkit`.
38
+
7. Create the folder `ios/PSPDFKit` and copy `PSPDFKit.framework` and `PSPDFKitUI.framework` into it.
39
+
8. Open `ios/YourApp.xcodeproj` in Xcode: `open ios/YourApp.xcodeproj`
40
+
9. Make sure the deployment target is set to 10.0 or higher:
11. 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:
46
+
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:
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:
56
+
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:
56
57

57
-
14. 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.)
58
+
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.)
0 commit comments