📄️ 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.
📄️ How to modify build.gradle file
In this guide, you will learn how to modify the build.gradle file using expo-config-plugins.
📄️ How to add codes in your Info.plist file using expo
Inside your app.plugin.js file, add the following code.
📄️ How to add codes in your MainApplication.java file using expo
Inside your app.plugin.js file, add the following code.
📄️ How to Add codes in IOS native files using expo in AppDelegate.m
Adding import statement in AppDelegate.m using expo
📄️ Adding iOS Permissions with Expo Config Plugins
Introduction
📄️ Working with expo-bare-react-native-app
For situations where you need to verify the generated platform files, the expo-bare-react-native-app repository is available. This repository can be used to test builds and confirm that app configurations are functioning as expected.
📄️ Sample expo plugin file for iOS and native changes
This is a sample expo plugin file that shows how to add custom codes in iOS and Android native files. So for best practice, you can create a new file named app.plugin.js in the root of your project and add the following code. Also as a best practice, you can add your custom codes in separate functions for iOS and Android and if you can keep these functions in separate files and import them in app.plugin.js file for better code management.