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
Let's create a simple app that integrates `pspdfkit-*.aar` and uses the react-native-pspdfkit module.
119
+
Let's create a simple app that integrates PSPDFKit and uses the react-native-pspdfkit module.
120
120
121
121
1. Make sure `react-native-cli` is installed: `yarn global add react-native-cli`
122
122
2. Create the app with `react-native init YourApp`.
123
123
3. Step into your newly created app folder: `cd YourApp`.
124
124
4. Install `react-native-pspdfkit` from GitHub: `yarn add github:PSPDFKit/react-native`.
125
-
5. Link module `react-native-pspdfkit`: `react-native link react-native-pspdfkit`.
126
-
6. Add dependencies to `YourApp/node_modules/react-native-pspdfkit/android/build.gradle`.
127
-
128
-
A complete list of the dependencies needed can be found in the [documentation](https://pspdfkit.com/guides/android/current/getting-started/integrating-pspdfkit/#toc_manual-library-file-integration) step 6, under `Manual library file integration`.
129
-
For PSPDFKit 2.9.3 :
130
-
131
-
```
132
-
dependencies {
133
-
...
134
-
//compile 'com.pspdfkit:pspdfkit:2.9.3@aar' <-- DO NOT ADD THE LIBRARY ITSELF
10. Copy `pspdfkit-*.aar` library in `YourApp/android/pspdfkit-lib`.
162
-
11. Add the following dependencies to `YourApp/android/app/build.gradle` file:
163
-
164
-
```
165
-
dependencies {
166
-
...
167
-
compile project(':pspdfkit-lib')
168
-
}
169
-
```
170
-
171
-
And modify the following lines (note **three** places to edit):
149
+
7. PSPDFKit targets modern platforms, so you'll have to update `compileSdkVersion` and `targetSdkVersion` to at least API 25 (note **three** places to edit):
0 commit comments