npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-photo-video-editor

v0.3.6

Published

Native photo and video editor for React Native, powered by Kotlin and Swift.

Readme

react-native-photo-video-editor

Early development: Milestone 6 is complete on Android and nearly complete on iOS, and Milestone 7's multi-clip timeline slice (clip list, split/duplicate/delete/reorder, gapless multi-clip export) is now complete on both platforms — audio tracks and transitions are deliberately deferred to a later slice. Android is compile-verified via Gradle throughout, including live-resolved Media3 dependencies, a time-aware OverlayEffect export path, the Brightness/Contrast/HslAdjustment filter export path, and multi-clip export via EditedMediaItemSequence/Composition (all verified against actual library bytecode, not guessed); iOS implements the same editing UI via AVFoundation but is unbuilt (no macOS toolchain here), uses a simpler AVMutableComposition-based approach for multi-clip preview/export, and its overlay export still burns overlays in for the whole clip regardless of their configured time range — the one remaining Milestone 6 gap, needing a custom AVVideoCompositing implementation to fix. Video aspect-ratio crop, video-level filters, and export-time speed change are Android-only/not-yet-implemented, each a documented, deliberate scope cut rather than an oversight.

A React Native Android/iOS Turbo Module with focused openPhotoEditor, openVideoEditor, and unified openEditor APIs. The full-screen native shell previews local media, honors feature visibility and theme, edits photos on-device (crop/rotate/straighten, adjustments/filters, text, images/stickers, pinch/rotate transforms, and freehand drawing) and video on-device (trim/rotate/speed/text/filters/export), and returns a typed result with real output metadata on Done or a typed cancellation result on Cancel. See docs/photo-editor.md and docs/video-editor.md for details.

Requirements and installation

React Native 0.85-compatible New Architecture applications are the verified target of this scaffold. React and React Native are peer dependencies. Autolinking handles native registration.

npm install react-native-photo-video-editor
# or: yarn add react-native-photo-video-editor
# or: pnpm add react-native-photo-video-editor
cd ios && pod install

No permissions are required by the placeholder. Future gallery saving will require consumer-app Photos/media usage descriptions or permissions; the library will not add broad storage permissions.

Usage

import {
  openPhotoEditor,
  cancelExport,
  addExportProgressListener,
  PhotoVideoEditorError,
} from 'react-native-photo-video-editor';

const subscription = addExportProgressListener((event) => {
  console.log(event.jobId, event.progress); // progress: 0..1
});

try {
  const result = await openPhotoEditor({
    source: { uri: 'file:///path/to/photo.jpg', type: 'photo' },
    features: { crop: true, rotate: true, text: true, stickers: true, draw: true },
    stickerAssets: [
      { id: 'brand', uri: 'https://example.com/brand-sticker.png' },
      { id: 'device-sticker', uri: 'file:///path/to/sticker.png' },
    ],
    export: { quality: 'high', imageFormat: 'png' },
    doneButtonText: 'Done',
    saveToGallery: false,
  });
  console.log(result.uri, result.cancelled);
  await cancelExport();
} catch (error) {
  if (error instanceof PhotoVideoEditorError)
    console.error(error.code, error.message);
} finally {
  subscription.remove();
}

See API, architecture, photo editor, video editor, and roadmap. Known limitations are non-functional tool placeholders, no transformed export, local-URI-only input, and no verified legacy-architecture support.

For local work, run yarn, then yarn typecheck, yarn lint, yarn test, and yarn prepare. See CONTRIBUTING.md. MIT licensed; see LICENSE.

To place a sticker at the center automatically when opening either editor, pass initialStickerIds containing unique IDs from stickerAssets:

await openPhotoEditor({
  source: { uri: photoUri, type: 'photo' },
  stickerAssets: [
    { id: 'brand', uri: 'https://example.com/brand-sticker.png' },
    { id: 'alternate', uri: 'https://example.com/alternate.png' },
  ],
  initialStickerIds: ['brand', 'alternate'],
});

The first sticker starts at the center of the media and can be moved, resized, or removed. The “Switch default sticker” control at the selected default sticker’s top-right corner, above its bottom-right scale control, cycles through the IDs in order and wraps around, replacing the current default sticker while preserving its transforms. Switching is undoable. After deletion, use Undo to restore the sticker and its controls. The swap control is disabled for one ID and appears only on the selected default sticker. Failed swaps leave the existing sticker in place. The same option works with openVideoEditor and openEditor, even if features.stickers hides the sticker picker. Omit it to start without a sticker. An unknown or duplicate ID rejects with E_INVALID_OPTIONS; an unreadable image rejects with E_SOURCE_UNREADABLE. HTTPS and local sticker URIs are supported.

Migration: replace initialStickerId: 'brand' with initialStickerIds: ['brand'].