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
+11-12Lines changed: 11 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,10 @@ The [PSPDFKit SDK](https://pspdfkit.com/) is a framework that allows you to view
29
29
30
30
#### Requirements
31
31
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
36
36
37
37
#### Getting Started
38
38
@@ -43,8 +43,7 @@ Let's create a simple app that integrates PSPDFKit and uses the `react-native-ps
43
43
3. Step into your newly created app folder: `cd YourApp`
44
44
4. Install `react-native-pspdfkit` from GitHub: `yarn add github:PSPDFKit/react-native`
45
45
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.
48
47
49
48
```diff
50
49
- platform :ios, '9.0'
@@ -85,15 +84,15 @@ target 'YourApp' do
85
84
end
86
85
```
87
86
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:
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`:
93
92

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:
95
94

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.)
0 commit comments