Home
Softono
react-mobile-image-editor

react-mobile-image-editor

Open source MIT TypeScript
12
Stars
2
Forks
7
Issues
1
Watchers
3 years
Last Commit

About react-mobile-image-editor

This repository is a react component to edit images at mobile phone by Konvajs.

Platforms

Web Self-hosted

Languages

TypeScript

Links

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>}
    />
  );
};