Skip to content

React Native Video TrimTrim video and audio, natively

A ready-made trimmer screen for iOS and Android, plus headless APIs to trim, compress, merge, mix audio and make GIFs. Works on the New and Old Architecture and in Expo development builds.

00:01.20000:07.450Save

Install ​

sh
npm install react-native-video-trim
sh
yarn add react-native-video-trim
sh
npx expo install react-native-video-trim
npx expo prebuild

Then run npx pod-install for iOS. See Installation for permissions and Android options.

Open the editor in one call ​

ts
import { showEditor } from 'react-native-video-trim';

showEditor(videoUri, {
  maxDuration: 30_000, // milliseconds
  saveToPhoto: true,
});

See it on a device ​

The trimmer editor running on iOS
iOS
The trimmer editor running on Android
Android

Released under the MIT License.