Expo
Expo-specific details
This plugin is designed for use with Expo. Please ensure that you are using one of the following workflows:
Bare Workflow
Managed Workflow with EAS
You can build your project in the cloud using EAS Build or locally with the expo prebuild
command.
Configuring Platform-Specific AdMob App IDs
If you are using Bare Workflow, you need to manually add the AdMob App IDs to the native configuration files, as described here.
However, for Managed Workflow with EAS to specify separate AdMob App IDs for Android and iOS, you need to update your Expo configuration. This can be done in either app.config.js
or app.json
by adding the following entry under plugins
, like:
plugins: [
[
"@addapptr/react-native-aatkit",
{
"androidAdMobAppId": "ca-app-pub-000000000000000~0000000000",
"iosAdMobAppId": "ca-app-pub-000000000000000~0000000000"
}
]
]
This ensures that the correct AdMob App ID is used depending on the platform the app is running on.
Last updated