Skip to main content

How to add config plugin in project

Appmaker uses expo for building the app. Using expo-config-plugins , you can modify the build.gradle file in the android folder of the app.

Learn more about expo-config-plugins

To add a config plugin in your project, follow the below steps:

Create a file named app.plugin.js in the root of your project.

module.exports = function myCustomExpoFunctionName(config) {
return config;
};

Add expo_plugins in the package.json file.

{
"name": "@appmaker-packages/extension-my-custom",
"version": "0.2.1",
"main": "index.js",
"peerDependencies": {
"react-native-my-custom": "^8.7.0"
},
"expo_plugins": [
"@appmaker-packages/extension-my-custom/app.plugin.js"
]
}