Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chenmoonmo/react-mobile-image-editor

Repository files navigation

react-mobile-image-editor

Installation

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

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /