Skip to content

Theming ​

The editor comes with a dark theme (the default) and a light theme, and lets you recolor the parts that show your brand.

ts
showEditor(videoUri, { theme: 'light' });

Try it ​

Pick colors below to preview them on a mock-up of the trimmer, then copy the matching showEditor() call. The preview is an approximation drawn with CSS; the real editor is native and also shows the edit toolbar.

Theme
Media type

Chevron contrast on the handle: 14.0:1

showEditor(videoUri, {});

What the theme changes ​

Dark (default)Light
BackgroundBlackWhite
Icons and textWhiteBlack
Cancel and Save labelsWhiteBlack
Crop brackets and gridWhiteBlack
Header text (headerTextColor default)WhiteBlack
Handle chevrons (handleIconColor default)BlackWhite
DialogsDark styleLight style

Color options ​

All color options take any React Native color string: '#f1d247', '#007AFF', 'white', 'rgb(0, 122, 255)'. The library converts them with processColor before they reach native code.

OptionDefaultWhat it colors
trimmerColor'#f1d247'The trimmer frame and its two handles.
handleIconColorblack (dark), white (light)The ‹ › chevrons on the handles.
headerTextColorwhite (dark), black (light)The headerText title.
waveformColor'white'Waveform bars, audio only.
waveformBackgroundColor'#3478F6'Track behind the waveform, audio only.

headerTextColor and handleIconColor follow the theme until you set them. When you change trimmerColor, check that the chevrons stay readable; the playground shows the contrast ratio.

ts
showEditor(videoUri, {
  theme: 'light',
  headerText: 'Trim your video',
  headerTextSize: 18,
  trimmerColor: '#007AFF',
  handleIconColor: '#FFFFFF',
});

Text and labels ​

There is no separate localization API. Every label and dialog string is an option, so pass in translated strings from your i18n layer. The full list is in Opening the editor.

Time labels ​

Use durationFormat to change how the start, current and end times are shown, for example 'mm:ss' to hide milliseconds. See Time label format.

Released under the MIT License.