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: samples/Catalog/README.md
+19-27
Original file line number
Diff line number
Diff line change
@@ -6,32 +6,19 @@ The project contains a large set of sample code, which illustrates how to set up
6
6
7
7
#### Requirements
8
8
9
-
- Android SDK
10
-
- Android NDK
11
-
- Android Build Tools 23.0.1 (React Native)
12
-
- Android Build Tools 28.0.3 (PSPDFKit module)
13
-
- Android Gradle plugin 3.4.1 or later.
14
-
- PSPDFKit for Android 6.6.0 or later.
9
+
- The [latest stable version of Android Studio](https://developer.android.com/studio).
10
+
- The [Android NDK](https://developer.android.com/studio/projects/install-ndk).
11
+
- An [Android Virtual Device](Android Virtual Device) or a hardware device.
15
12
- React Native 0.60.4.
16
13
17
14
#### Getting Started
18
15
19
-
1. Clone the repository. `git clone https://github.com/PSPDFKit/react-native.git`.
20
-
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.)
21
-
3. Update license key in `samples/Catalog/android/app/src/main/AndroidManifest.xml`:
22
-
23
-
```xml
24
-
<application>
25
-
...
26
-
27
-
<meta-data
28
-
android:name="pspdfkit_license_key"
29
-
android:value="YOUR_LICENSE_KEY_GOES_HERE"/>
30
-
31
-
</application>
32
-
```
33
-
34
-
4. Catalog app is now ready to launch. From `samples/Catalog` directory run `react-native run-android`.
16
+
1. Clone the repository: `git clone https://github.com/PSPDFKit/react-native.git`.
17
+
2. Step into the Catalog project's directory: `cd react-native/samples/Catalog`
18
+
3. Install dependencies: run `yarn install`.
19
+
4.[Start your emulator](https://developer.android.com/studio/run/emulator#runningemulator).
20
+
5. Start the Metro bundler by running `react-native start`.
21
+
6. Catalog app is now ready to launch. From `samples/Catalog` directory run `react-native run-android`.
35
22
36
23
### Running the Catalog on iOS
37
24
@@ -44,10 +31,15 @@ The project contains a large set of sample code, which illustrates how to set up
44
31
#### Getting Started
45
32
46
33
1. Clone the repository: `git clone https://github.com/PSPDFKit/react-native.git`.
47
-
2. Step into your newly cloned folder: `cd react-native` and create a new `PSPDFKit` directory: `mkdir PSPDFKit`.
48
-
3.[Download the latest version of PSPDFKit for iOS](https://customers.pspdfkit.com/download/binary/ios/latest) and mount the DMG file.
49
-
4. Copy `PSPDFKit.xcframework` and `PSPDFKitUI.xcframework` into the `PSPDFKit` directory.
50
-
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.)
51
-
6. Run the app with `react-native-cli`: `react-native run-ios`
34
+
2. Step into your newly cloned folder: `cd react-native`
35
+
3. Create a new `PSPDFKit` directory: `mkdir PSPDFKit`.
36
+
4.[Download the latest version of PSPDFKit for iOS](https://customers.pspdfkit.com/download/binary/ios/latest) and mount the DMG file.
37
+
5. Copy `PSPDFKit.xcframework` and `PSPDFKitUI.xcframework` into the `PSPDFKit` directory.
38
+
6. Step into the Catalog project's directory: `cd /samples/Catalog`
39
+
7. 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.)
40
+
8. Start the Metro bundler by running `react-native start`
41
+
9. Run the app with `react-native-cli`: `react-native run-ios`
42
+
43
+
### Troubleshooting
52
44
53
45
**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.
Copy file name to clipboardexpand all lines: samples/NativeCatalog/README.md
+25-7
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,34 @@ This second Catalog example serves to show you how you can leverage `PdfView` (A
4
4
5
5
### Running this Sample on Android
6
6
7
-
1. Clone the repository. `git clone https://github.com/PSPDFKit/react-native.git`.
8
-
2. Install dependencies: run `yarn install` from `samples/NativeCatalog` directory.
9
-
3. The Native Catalog app is now ready to launch. From `samples/NativeCatalog` directory run `react-native run-android`.
7
+
#### Requirements
8
+
9
+
- A [development environment](https://reactnative.dev/docs/environment-setup) for running React Native projects using the React Native CLI (not the Expo CLI).
10
+
- The [latest stable version of Android Studio](https://developer.android.com/studio).
11
+
- The [Android NDK](https://developer.android.com/studio/projects/install-ndk).
12
+
- An [Android Virtual Device](Android Virtual Device) or a hardware device.
13
+
14
+
#### Getting Started
15
+
16
+
1. Clone the repository: `git clone https://github.com/PSPDFKit/react-native.git`.
17
+
2. Step into the NativeCatalog project's directory: `cd react-native/samples/NativeCatalog`.
18
+
3. Install dependencies: run `yarn install`.
19
+
4. The Native Catalog app is now ready to launch: `react-native run-android`.
10
20
11
21
### Running this Sample on iOS
12
22
13
-
1. Clone the repository. `git clone https://github.com/PSPDFKit/react-native.git`.
14
-
2. Install dependencies: run `yarn install` from the `samples/NativeCatalog` directory.
15
-
3.`cd ios` then run `pod install`.
16
-
4. The Native Catalog app is now ready to launch. From `samples/NativeCatalog` directory run `react-native run-ios`.
23
+
- A [development environment](https://reactnative.dev/docs/environment-setup) for running React Native projects using the React Native CLI (not the Expo CLI).
24
+
- The [latest stable version of Xcode](https://apps.apple.com/us/app/xcode/id497799835?mt=12).
25
+
- The [latest stable version of CocoaPods](https://github.com/CocoaPods/CocoaPods/releases). If you don’t already have CocoaPods installed, follow the [CocoaPods installation guide](https://guides.cocoapods.org/using/getting-started.html#installation) to install CocoaPods on your Mac.
26
+
27
+
#### Getting Started
28
+
29
+
1. Clone the repository: `git clone https://github.com/PSPDFKit/react-native.git`.
30
+
2. Step into the `NativeCatalog` project's directory: `cd react-native/samples/NativeCatalog`.
31
+
3. Install dependencies: run `yarn install`.
32
+
4.`cd ios` then run `pod install`.
33
+
5. Step back into the `NativeCatalog` project's directory: `cd ..`.
34
+
6. The Native Catalog app is now ready to launch: `react-native run-ios`.
0 commit comments