1.1.5 • Published 7 months ago

react-native-photoedit-sdk v1.1.5

Weekly downloads
78
License
MIT
Repository
github
Last release
7 months ago

react-native-photoedit-sdk

Getting started

💥 working only for android

$ npm install react-native-photoedit-sdk --save

$ yarn add react-native-photoedit-sdk

Usage

import PhotoeditSdk from "react-native-photoedit-sdk";
    PhotoEditSDK.Edit({
    path: filename,
    visible_gallery: false,
    visible_camera: false,
    draw_watermark: true,
    watermark: require('../assets/image/logo.png'),
    confirm_message: "Are you sure to send?",
    onDone: (uri) => {
        console.log("success", uri);
    },
    onCancel: (code) => console.log("err", code),
    });

Params:

paramtypedescription
pathstringedit image path
visible_gallerybooleanvisible open gallery button
visible_camerabooleanvisible open camera button
draw_watermarkbooleandraw watermark
watermarkintegerwatermark path(react native assets)
confirm_messagestringphoto editor confirm message
onDonecallbackcomplete photo editor
onCancelcallbackcancel photo editor

add lines on AndroidManifest.xml:

    <activity android:name="com.sunny.photoeditor.EditImageActivity" />
    <activity android:name="com.sunny.photoeditor.base.BaseActivity" />
1.1.5

7 months ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.2

3 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago