Skip to content

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 ​

NameTypeDescription
handleIconColor?stringColor of the chevrons on the trimmer handles. Defaults to black in the dark theme, white in the light theme.
headerTextColor?stringHeader text color. Defaults to white in the dark theme, black in the light theme.
trimmerColor?stringTrimmer bar color. Default '#f1d247'.
waveformBackgroundColor?stringBackground behind the audio waveform bars. Default '#3478F6'.
waveformColor?stringAudio waveform bar color. Default 'white'.

Example ​

ts
const options: EditorOptions = {
  maxDuration: 30_000,
  theme: 'light',
  trimmerColor: '#007AFF',
};
showEditor(videoPath, options);

Released under the MIT License.