Skip to main content

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

  1. Open the theme or extension's package.json file.

  2. 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.

  1. Save the changes to the package.json file.

  2. Run the command appmaker release to release your extension or theme.

  3. Access the partner dashboard.

  4. Navigate to the App Builds section.

  5. Select the "debug" option for the build types. For more information on app builds section, refer to the App Builds guide.

  6. 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.