react-mobile-image-editor
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-mobile-image-editor

Installation

# npm
> npm install react-mobile-image-editor

# yarn
> yarn add react-mobile-image-editor

LiveDemo

Examples

import Editor, { useExport } from "react-mobile-image-editor";

import image from "./assets/chibubao.png";

const App = () => {
  const editorRef = useExport();

  const handleDownload = () => {
    console.log(editorRef.current.exportImage());
  };

  return (
    <Editor
      ref={editorRef}
      image={image}
      toolbarBottom={<button onClick={handleDownload}>Download</button>}
    />
  );
};

Package Sidebar

Install

npm i react-mobile-image-editor

Weekly Downloads

1

Version

1.0.1

License

none

Unpacked Size

124 kB

Total Files

19

Last publish

Collaborators

  • chenmoonmo