-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Show the settings button in the `ConfiguredPDFViewComponent` iOS example * Add README file for the Catalog * Fix issue where the `pageIndex` prop needed to be set before the document prop. The order should not be important. * Update README * Bump version number to 1.30.18
- Loading branch information
Showing
10 changed files
with
74 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
## Catalog | ||
|
||
The project contains a large set of sample code, which illustrates how to set up and customize PSPDFKit for various use cases. You can run the Catalog app on Android and iOS. | ||
|
||
### Running the Catalog on Android | ||
|
||
#### Requirements | ||
|
||
- Android SDK | ||
- Android NDK | ||
- Android Build Tools 23.0.1 (React Native) | ||
- Android Build Tools 28.0.3 (PSPDFKit module) | ||
- Android Gradle plugin 3.4.1 or later. | ||
- PSPDFKit for Android 6.6.0 or later. | ||
- React Native 0.60.4. | ||
|
||
#### Getting Started | ||
|
||
1. Clone the repository. `git clone https://github.com/PSPDFKit/react-native.git`. | ||
2. Install dependencies: run `yarn install` from `samples/Catalog` directory. (Because of a [bug](https://github.com/yarnpkg/yarn/issues/2165) you may need to clean `yarn`'s cache with `yarn cache clean` before.) | ||
3. Update license key in `samples/Catalog/android/app/src/main/AndroidManifest.xml`: | ||
|
||
```xml | ||
<application> | ||
... | ||
|
||
<meta-data | ||
android:name="pspdfkit_license_key" | ||
android:value="YOUR_LICENSE_KEY_GOES_HERE"/> | ||
|
||
</application> | ||
``` | ||
|
||
4. Catalog app is now ready to launch. From `samples/Catalog` directory run `react-native run-android`. | ||
|
||
### Running the Catalog on iOS | ||
|
||
#### Requirements | ||
|
||
- The latest [Xcode](https://developer.apple.com/xcode/). | ||
- the latest version of PSPDFKit for iOS. | ||
- React Native 0.60.4. | ||
|
||
#### Getting Started | ||
|
||
1. Clone the repository: `git clone https://github.com/PSPDFKit/react-native.git`. | ||
2. Step into your newly cloned folder: `cd react-native` and create a new `PSPDFKit` directory: `mkdir PSPDFKit`. | ||
3. [Download the latest version of PSPDFKit for iOS](https://customers.pspdfkit.com/download/binary/ios/latest) and mount the DMG file. | ||
4. Copy `PSPDFKit.xcframework` and `PSPDFKitUI.xcframework` into the `PSPDFKit` directory. | ||
5. Install dependencies: `yarn install` in `samples/Catalog` directory. (Because of a [bug](https://github.com/yarnpkg/yarn/issues/2165) you may need to clean `yarn`'s cache with `yarn cache clean` before.) | ||
6. Run the app with `react-native-cli`: `react-native run-ios` | ||
|
||
**Note:** If you get an error about `config.h` not being found check out [this blog post](https://tuntunir.blogspot.com/2018/02/react-native-fatal-error-configh-file.html) for information on how to fix it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters