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
+12-14Lines changed: 12 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -37,25 +37,25 @@ To make sure this is fast, please use a work email and have someone from your co
37
37
38
38
#### Requirements
39
39
40
-
- Xcode 11.3.1
41
-
- PSPDFKit 9.2.0 for iOS or later
42
-
- react-native >= 0.61.5
43
-
- CocoaPods >= 1.8.4
40
+
- Xcode 11.5
41
+
- PSPDFKit 9.4.0 for iOS or later
42
+
- react-native >= 0.62.2
43
+
- CocoaPods >= 1.9.3
44
44
45
45
#### Getting Started
46
46
47
47
Let's create a simple app that integrates PSPDFKit and uses the `react-native-pspdfkit` module.
48
48
49
49
1. Make sure `react-native-cli` is installed: `yarn global add react-native-cli`
50
-
2. Create the app with `react-native init YourApp`.
50
+
2. Create the app with `react-native init YourApp`
51
51
3. Step into your newly created app folder: `cd YourApp`
52
52
4. Install `react-native-pspdfkit` from GitHub: `yarn add github:PSPDFKit/react-native`
53
53
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.)
54
-
6. Open `ios/Podile` in a text editor: `open ios/Podfile`, update the platform to iOS 11, and add your CocoaPods URL.
54
+
6. Open `ios/Podile` in a text editor: `open ios/Podfile`, update the platform to iOS 12, and add the PSPDFKit podspecs:
10. Change "View controller-based status bar appearance" to `YES` in `Info.plist`:
100
100

@@ -275,11 +275,9 @@ Take a look at the [instructions to get started here](/samples/NativeCatalog/REA
275
275
276
276
#### Running on Mac Catalyst
277
277
278
-
Using PSPDFKit React Native Wrapper on Mac Catalyst is not fully supported yet. We plan on adding full support for Mac Catalyst as soon as React Native and CocoaPods will full support Mac Catalyst.
279
-
280
-
For more details, see [why we don't fully support Mac Catalyst yet here](ios/Experimental_Mac_Catalyst_Support.md#why-is-mac-catalyst-not-fully-supported-yet).
278
+
Using PSPDFKit React Native Wrapper on Mac Catalyst does not currently work due to a [Flipper and FlipperKit issue](https://github.com/facebook/react-native/issues/28810).
281
279
282
-
If you wish to try the experimental Support for Mac Catalyst, please follow [the instructions here.](ios/Experimental_Mac_Catalyst_Support.md)
280
+
If you wish to run your project on Mac Catalyst, please try the [following workaround which removes everything related to Flipper and FlipperKit](https://github.com/facebook/react-native/issues/28810#issuecomment-623357732).
pod 'React', :path => '../node_modules/react-native/'
37
-
pod 'React-Core', :path => '../node_modules/react-native/React'
38
-
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
39
-
pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
40
-
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
41
-
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
42
-
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
43
-
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
44
-
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
45
-
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
46
-
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
47
-
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
48
-
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
49
-
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'
50
-
51
-
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
52
-
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
53
-
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
54
-
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
55
-
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
56
-
57
-
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
58
-
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
59
-
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
60
-
61
-
pod 'react-native-pspdfkit', :path => '../node_modules/react-native-pspdfkit'
62
-
- pod 'PSPDFKit', podspec: 'https://customers.pspdfkit.com/cocoapods/YOUR_COCOAPODS_KEY_GOES_HERE/pspdfkit/latest.podspec'
63
-
+ pod 'PSPDFKit', podspec: 'https://customers.pspdfkit.com/cocoapods/USE_YOUR_OWN_COCOAPODS_KEY/pspdfkit/latest.podspec'
64
-
- pod 'Instant', podspec:'https://customers.pspdfkit.com/cocoapods/YOUR_COCOAPODS_KEY_GOES_HERE/instant/latest.podspec'
65
-
+ pod 'Instant', podspec:'https://customers.pspdfkit.com/cocoapods/USE_YOUR_OWN_COCOAPODS_KEY/instant/latest.podspec'
66
-
67
-
use_native_modules!
68
-
end
69
-
```
70
-
71
-
4.`cd ios` then run `pod install`.
72
-
5. The Native Catalog app is now ready to launch. From `samples/NativeCatalog` directory run `react-native run-ios`.
27
+
2. Install dependencies: run `yarn install` from the `samples/NativeCatalog` directory.
28
+
3.`cd ios` then run `pod install`.
29
+
4. The Native Catalog app is now ready to launch. From `samples/NativeCatalog` directory run `react-native run-ios`.
73
30
74
31
### Examples
75
32
@@ -84,3 +41,7 @@ This example shows you how to use the `PdfProcessor` on Android and `PSPDFRender
84
41
#### Watermark on Startup
85
42
86
43
This example shows you how to use the `PdfProcessor` on Android and `PSPDFRenderDrawBlock` on iOS to put a watermark on the currently displayed document on startup, save it to a new path, and display it. The relevant part is the `performWatermarking` method in the `CustomPdfViewManager` and `-[CustomPDFViewcreateWatermarkAndReloadData:]` on iOS.
44
+
45
+
#### Instant Example
46
+
47
+
In this example, we bridged the native iOS Instant example from [PSPDFKit Catalog](https://pspdfkit.com/guides/ios/current/getting-started/example-projects/#pspdfcatalog) over to React Natice.
0 commit comments