@config-plugins/react-native-adjust
Expo Config Plugin to auto-configure react-native-adjust when the native code is generated (npx expo prebuild).
Versioning
Ensure you use versions that work together!
| 55.0.0 | 5.1.0 | 13.0.0 |
| 54.0.0 | 5.1.0 | 12.0.0 |
| 53.0.0 | 5.1.0 | 11.0.0 |
| 52.0.0 | 5.0.2 | 9.0.0 |
| 51.0.0 | 4.38.1 | 8.0.0 |
| 50.0.0 | 4.37.1 | 7.0.0 |
| 49.0.0 | 4.33.0 | 6.0.0 |
Expo installation
This package cannot be used in the "Expo Go" app because it requires custom native code.
First install the package with yarn, npm, or npx expo install.
npx expo install react-native-adjust @config-plugins/react-native-adjust
After installing this npm package, add the config plugin to the plugins array of your app.json or app.config.js:
{
"plugins": ["@config-plugins/react-native-adjust"]
}
Configuration Options
Android 12+ Support
If you are targeting Android 12 and above (API level 31), you need to add it in the options of the plugin:
{
"plugins": [
["@config-plugins/react-native-adjust", { "targetAndroid12": true }]
]
}
SDK Signature
This will add the appropriate permission for you.
To set up Adjust SDK Signature you need to specify the path for the xcframework and the aar file.
{
"expo": {
"plugins": [
"@config-plugins/react-native-adjust",
{
"targetAndroid12": true ,
"sdkSignature" : {
"android" : "./path/to.aar",
"ios" : "./path/to.xcframework"
}
}
]
}
}
Meta Install Referrer
If you need to track Meta (Facebook) install referrers, you can enable the Meta install referrer dependency:
{
"plugins": [
["@config-plugins/react-native-adjust", { "metaInstallReferrer": true }]
]
}
This will add the com.adjust.sdk:adjust-android-meta-referrer:5.4.0 dependency to your Android build.
Doc: https://dev.adjust.com/en/sdk/react-native/plugins/meta-referrer-plugin
Combined Configuration
You can combine multiple options:
{
"plugins": [
[
"@config-plugins/react-native-adjust",
{
"targetAndroid12": true,
"metaInstallReferrer": true
}
]
]
}
Next, rebuild your app as described in the "Adding custom native code" guide.