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-27Lines changed: 19 additions & 27 deletions
Display the source diff
Display the rich diff
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.
0 commit comments