Skip to content

Commit 89e3f92

Browse files
committed
Add missing add license step to README
1 parent b4ab111 commit 89e3f92

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,28 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
170170
...
171171
```
172172
173-
8. Set primary color. In `YourApp/android/app/src/main/res/values/styles.xml` replace
173+
8. Enter your PSPDFKit license key into `YourApp/android/app/src/main/AndroidManifest.xml` file:
174+
175+
```diff
176+
<application>
177+
...
178+
179+
+ <meta-data
180+
+ android:name="pspdfkit_license_key"
181+
+ android:value="YOUR_LICENSE_KEY_GOES_HERE"/>
182+
183+
</application>
184+
```
185+
186+
9. Set primary color. In `YourApp/android/app/src/main/res/values/styles.xml` replace
174187
```xml
175188
<!-- Customize your theme here. -->
176189
```
177190
with
178191
```xml
179192
<item name="colorPrimary">#3C97C9</item>
180193
```
181-
9. Replace the default component from `YourApp/index.android.js` with a simple touch area to present a PDF document from the local device filesystem:
194+
10. Replace the default component from `YourApp/index.android.js` with a simple touch area to present a PDF document from the local device filesystem:
182195

183196
```javascript
184197
import React, { Component } from 'react';
@@ -253,13 +266,13 @@ with
253266
// Change both 'YourApp's to your app's name.
254267
AppRegistry.registerComponent('YourApp', () => YourApp);
255268
```
256-
10. Before launching the app you need to copy a PDF document onto your development device or emulator.
269+
11. Before launching the app you need to copy a PDF document onto your development device or emulator.
257270

258271
```bash
259272
adb push /path/to/your/document.pdf /sdcard/document.pdf
260273
```
261274

262-
11. Your app is now ready to launch. From `YourApp` directory run `react-native run-android`.
275+
12. Your app is now ready to launch. From `YourApp` directory run `react-native run-android`.
263276

264277
```bash
265278
react-native run-android

0 commit comments

Comments
 (0)