mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 20:35:43 +08:00
Flatten jsdocs to markdown plaintext
Differential Revision: D6261799 fbshipit-source-id: 269e151c5d136c1d508d9f2a060c0c670d0fe0f2
This commit is contained in:
committed by
Facebook Github Bot
parent
7df58e23a3
commit
9ec9567390
44
docs/imageeditor.md
Normal file
44
docs/imageeditor.md
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
id: imageeditor
|
||||
title: ImageEditor
|
||||
layout: docs
|
||||
category: APIs
|
||||
permalink: docs/imageeditor.html
|
||||
next: imagepickerios
|
||||
previous: geolocation
|
||||
---
|
||||
|
||||
|
||||
|
||||
### Methods
|
||||
|
||||
- [`cropImage`](docs/imageeditor.html#cropimage)
|
||||
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# Reference
|
||||
|
||||
## Methods
|
||||
|
||||
### `cropImage()`
|
||||
|
||||
```javascript
|
||||
static cropImage(uri, cropData, success, failure)
|
||||
```
|
||||
|
||||
|
||||
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 failure callback will be called.
|
||||
|
||||
If the cropping process is successful, the resultant cropped image
|
||||
will be stored in the ImageStore, and the URI returned in the success
|
||||
callback will point to the image in the store. Remember to delete the
|
||||
cropped image from the ImageStore when you are done with it.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user