Use Applovin Plugin for Expo (without prebuild)
See example at https://github.com/n0xgg04/expo-applovin-ads-example
npm install expo-applovin-ads react-native-applovin-max
or Yarn:
yarn add expo-applovin-ads react-native-applovin-max
Add to your app.json
:
"plugins": [
...other plugins,
[
"expo-applovin-ads/expo",
{
"apiKey": "YOUR_AD_REVIEW_KEY_HERE"
}
]
]
Get keys on Applovin Account Tab. Click here
- Hook for EAS Build iOS
"eas-build-post-install": "node ./node_modules/expo-applovin-ads/scripts/eas-build-post-install-script.js",
Now, you have to build a development build and install it on a device before run dev client
eas build --platform android --clean
If you don't know how to use EAS? Read on Expo Docs
import {AppLovinMAX, Configuration } from 'react-native-applovin-max';
AppLovinMAX.initialize("YOUR_SDK_KEY_HERE").then((conf: Configuration) => {
}).catch();