Customize Menu Items
VideoEditor SDK supports changing the menu items used in the editor UI.
The tool menu items displayed in the main menu can be configured through the configuration.tools
option and takes an array of Tool
s.
You can find a list of all available tools here.
Note that items for tools not included in your license subscription will be hidden automatically.
import { Configuration, Tool, VESDK } from "react-native-videoeditorsdk";
export const openVideoFromLocalPathExample = async (): Promise<void> => {
const video = require("../../../../../assets/vesdk/Skater.mp4");
try {
const configuration: Configuration = {
tools: [
Tool.ADJUSTMENT,
Tool.AUDIO,
Tool.BRUSH,
Tool.COMPOSITION,
Tool.FILTER,
Tool.FOCUS,
Tool.FRAME,
Tool.OVERLAY,
Tool.STICKER,
Tool.TEXT,
Tool.TEXT_DESIGN,
Tool.TRANSFORM,
Tool.TRIM,
],
};
const result = await VESDK.openEditor(video, configuration);
if (result != null) {
console.log(result?.video);
} else {
return;
}
} catch (error) {
console.log(error);
}
};