Variable: default
ts
const default: Spec;The native module. Call the named functions (showEditor, trim, ...) for everything else; use the default export to subscribe to editor events on the New Architecture. Each on* emitter takes a listener and returns a subscription with remove(). Payloads are described in VideoTrimEventMap.
Example
ts
import VideoTrim from 'react-native-video-trim';
const sub = VideoTrim.onFinishTrimming(({ outputPath, duration }) => {
console.log(outputPath, duration);
});
// later
sub.remove();