Instructions for adding libraries that contain native code
Description
This guide will help you to add libraries that contain native code to your app.
Steps
Open the theme or extension's
package.json
file.Add the native dependencies required inside the peer-dependencies section. Below is an example of how to add the
react-native-webview
library.
{
"name": "@appmaker-packages/sample-theme",
"peerDependencies": {
"react-native-webview": "12.2.0"
}
}
Likewise, you can add other libraries as well.
Save the changes to the package.json file.
Run the command
appmaker release
to release your extension or theme.Access the partner dashboard.
Navigate to the App Builds section.
Select the "debug" option for the build types. For more information on app builds section, refer to the App Builds guide.
Initiate the debug build process from the partner dashboard.
Please follow these steps to add the necessary native dependencies and perform the appmaker release, followed by a debug build from the partner dashboard.