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.
Requirements for iOS:
- The minimum deployment target needs to be at least 11.0
- Required react-native version 0.60.x+
Requirements for Android:
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.
- Log into your Console instance
- Navigate to the API Keys area under the Developer menu
- Copy your Sandbox or Production Link API Key for use in the next step
For successful implementation you need to make sure to utilize user tokens correctly. Learn how to do it in Argyle returning user experience guide before continuing onto the next step.
See LinkExample for sample implementation.