react-native-photoedit-sdk

1.1.5 • Public • Published

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:

param type description
path string edit image path
visible_gallery boolean visible open gallery button
visible_camera boolean visible open camera button
draw_watermark boolean draw watermark
watermark integer watermark path(react native assets)
confirm_message string photo editor confirm message
onDone callback complete photo editor
onCancel callback cancel photo editor

add lines on AndroidManifest.xml:

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.52latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.52
1.1.41
1.1.31
1.1.21
1.1.11
1.1.01
1.0.91
1.0.81
1.0.71
1.0.61
1.0.51
1.0.41
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i react-native-photoedit-sdk

Weekly Downloads

16

Version

1.1.5

License

MIT

Unpacked Size

7.86 MB

Total Files

208

Last publish

Collaborators

  • upmanager