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
+20-7Lines changed: 20 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -382,7 +382,20 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
382
382
3. Step into your newly created app folder: `cd YourApp`.
383
383
4. Add `react-native-pspdfkit` module from GitHub: `yarn add github:PSPDFKit/react-native`.
384
384
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.)
385
-
6. PSPDFKit targets modern platforms, so you'll have to set the `minSdkVersion` to 19. In `YourApp/android/build.gradle`:
385
+
6. Add PSPDFKit repository to `YourApp/android/build.gradle` so PSPDFKit library can be downloaded:
386
+
387
+
```diff
388
+
...
389
+
allprojects {
390
+
repositories {
391
+
mavenLocal()
392
+
+ maven {
393
+
+ url 'https://customers.pspdfkit.com/maven/'
394
+
+ }
395
+
...
396
+
```
397
+
398
+
7. PSPDFKit targets modern platforms, so you'll have to set the `minSdkVersion` to 19. In `YourApp/android/build.gradle`:
386
399
387
400
```diff
388
401
...
@@ -397,7 +410,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
397
410
...
398
411
```
399
412
400
-
7. We will also need to enable MultiDex support. In `YourApp/android/app/build.gradle`:
413
+
8. We will also need to enable MultiDex support. In `YourApp/android/app/build.gradle`:
401
414
402
415
```diff
403
416
...
@@ -412,7 +425,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
412
425
...
413
426
```
414
427
415
-
8. <aid="step-10"></a>Enter your PSPDFKit license key into `YourApp/android/app/src/main/AndroidManifest.xml` file:
428
+
9. <aid="step-9"></a>Enter your PSPDFKit license key into `YourApp/android/app/src/main/AndroidManifest.xml` file:
416
429
417
430
```diff
418
431
<application>
@@ -425,7 +438,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
425
438
</application>
426
439
```
427
440
428
-
9. Set primary color. In `YourApp/android/app/src/main/res/values/styles.xml` replace
441
+
10. Set primary color. In `YourApp/android/app/src/main/res/values/styles.xml` replace
429
442
430
443
```xml
431
444
<!-- Customize your theme here. -->
@@ -437,7 +450,7 @@ with
437
450
<itemname="colorPrimary">#3C97C9</item>
438
451
```
439
452
440
-
10. <aid="step-12"></a>Replace the default component from `YourApp/App.js` with a simple touch area to present a PDF document from the local device filesystem:
453
+
11. <aid="step-11"></a>Replace the default component from `YourApp/App.js` with a simple touch area to present a PDF document from the local device filesystem:
0 commit comments