1.1.0 • Published 7 months ago

react-image-uploader-fa v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Installation

npm i react-image-uploader-fa --save

or yarn

yarn add react-image-uploader-fa

Usages

You must import the following where you will use it:

...
import ReactImagePickerEditor, { ImagePickerConf } from "react-image-uploader-fa";
import "react-image-uploader-fa/dist/index.css"
...
  const config: ImagePickerConf = {
    borderRadius: '8px',
    language: 'fa',
    width: '330px',
    height: '250px',
    objectFit: 'contain',
    compressInitial: null,
  };
  // const initialImage: string = '/assets/images/8ptAya.webp';
  const initialImage = '';

 return <>
       ...
        <ReactImagePickerEditor
            config={config}
            imageSrcProp={initialImage}
            imageChanged={(newDataUri: any) => {
                setImageSrc(newDataUri);
            }}
            imageDeleted={() => console.log("delete")}
            imageUploaded={() => console.log("upload")}
            imageDownloaded={() => console.log("download")}
            imageEdited={() => console.log("edit")}
        />
        </>
      ...

#######

1.1.0

7 months ago

1.0.16

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.11

7 months ago

1.0.10

7 months ago

1.0.15

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago

1.0.12

7 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago