Type Alias: EditorOptions
ts
type EditorOptions = Partial<Omit<EditorConfig,
| "headerTextColor"
| "trimmerColor"
| "handleIconColor"
| "waveformColor"
| "waveformBackgroundColor">> & object;Options accepted by showEditor. Every field is optional; anything you leave out falls back to its default.
This is EditorConfig with the color fields taking any React Native color string ('#f1d247', 'red', 'rgba(0,0,0,0.5)') instead of a processColor number.
Type Declaration
| Name | Type | Description |
|---|---|---|
handleIconColor? | string | Color of the chevrons on the trimmer handles. Defaults to black in the dark theme, white in the light theme. |
headerTextColor? | string | Header text color. Defaults to white in the dark theme, black in the light theme. |
trimmerColor? | string | Trimmer bar color. Default '#f1d247'. |
waveformBackgroundColor? | string | Background behind the audio waveform bars. Default '#3478F6'. |
waveformColor? | string | Audio waveform bar color. Default 'white'. |
Example
ts
const options: EditorOptions = {
maxDuration: 30_000,
theme: 'light',
trimmerColor: '#007AFF',
};
showEditor(videoPath, options);