Argyle Link React Native SDK provides a way to integrate Argyle Link into your React Native app.
If you are looking to update Argyle Link to the newest version, navigate to upgrade guide.
- Required react-native version 0.73.0+
Requirements for iOS:
- iOS 14.0+
- Xcode 14.0+
- Swift 5.5+
Requirements for Android:
Set the minSdkVersion
in android/app/build.gradle
:
android {
compileSdk 34
defaultConfig {
minSdk 26
...
}
...
}
Important: When using tools like Proguard to obfuscate your code, make sure to exclude Android Link SDK package (com.argyle.*
) from the process, it may cause unexpected runtime issues otherwise. You can do this by adding this line to your proguard-rules.pro:-keep class com.argyle. { *; }
In case of runtime issues related to okhttp3
library, note that Link SDK currently has a dependency of okhttp3:4.9.2
but in case some of your dependencies use an older version (okhttp3:3.x.x
) they may need updating to a version that also uses okhttp3:4.x.x
. Alternatively, you may try forcing the version of the dependency as follows:
configurations.all {
resolutionStrategy.force 'com.squareup.okhttp3:okhttp:4.9.x'
resolutionStrategy.force 'com.squareup.okhttp3:okhttp-urlconnection:4.9.x'
}
$ npm install @argyleio/argyle-plugin-react-native --save
or
$ yarn add @argyleio/argyle-plugin-react-native
Update the Argyle pod with:
$ cd ios
$ pod install
$ pod update
in case not the most recent version of Argyle pod was installed.
To prevent your API key and secret from being exposed on the front-end, request user tokens on your server side.
For detailed guidance on how to integrate our SDK please review the example app, and also check out our Link SDK Documentation.