*https://github.com/facebook/react-native* @flow*/import React, { Component } from'react'; import { AppRegistry, StyleSheet, View, Image, ImageEditor } from'react-native';//设置裁剪的规格constcropData ={ offset: {x:120, y:150},//从原图裁剪的起始坐标size: {width:400, height:400},/...
importImageEditorfrom'@react-native-community/image-editor'; Crop image Crop the image specified by the URI param. If URI points to a remote image, it will be downloaded automatically. If the image cannot be loaded/downloaded, the promise will be rejected. ...
} from "react-native"; import ImageEditor from "@react-native-community/image-editor"; export interface Props { // noop } interface Size { width: number; height: number; } interface State { photoUri: any; photoWidth: number; photoHeight: number; croppedImageURI: string | null; targetSize...
本仓库已迁移至 Gitee:OpenHarmony-SIG/rntpc_react-native-image-editor。 包名已更改为 @react-native-ohos/react-native-image-editor,支持直接从 npm 下载。 更多详情请查阅新仓库的 README 文件。 本仓库旧版本的文档已归档:链接 Migration Announcement This repository has been migrated to Gitee: OpenHarmony...
react-native.config.js -23 src App.tsx -7 ImageCropper.tsx -126 SquareImageCropper.tsx -189 constants.ts -2 types.ts -16 tsconfig.json -3 yarn.lock -6656 harmony image_editor.har image_editor .gitignore +6 build-profile.json5 +12 hvigorfile.ts +6 index.ets ...
When i am using base64 uri with cropImage function it works perfectly with IOS but in Android i have this issue: [Error:unknownprotocol:data] Environment info "react-native": "0.62.2", "@react-native-community/image-editor": "^2.3.0", ...
Bug This Yellow Box warning appears whenever using the cropImage method of this library. Maybe due to the use of _bridge.imageLoader here. Environment info React Native info output: System: OS: macOS Mojave 10.14.5 CPU: (8) x64 Intel(R) ...
Environment react-native:0.71.9 "@react-native-community/image-editor": "^2.3.0", xcode:14.3 ios:16.4 Description /node_modules/@react-native-community/image-editor/ios/RNCImageEditor.m:65:35: error: call to undeclared function 'RCTTrans...
🌄 Photo editor using native modules for iOS and Android. Inherit from 2 available libraries, ZLImageEditor (iOS) and PhotoEditor (Android) - NitrogenZLab/react-native-photo-editor
React Native Photo Editor (RNPE) 🌄 Image editor using native modules for iOS and Android. Inherit from 2 available libraries, ZLImageEditor (iOS) and PhotoEditor (Android) Note The difference between the 2 platforms is huge - Be careful when using This lib is for personal use, so if...