mirror of
https://github.com/status-im/react-native-image-resizer.git
synced 2025-02-17 17:17:25 +00:00
Update example to use import
syntax
This commit is contained in:
parent
f3a1cab919
commit
590ae1d7fe
@ -94,7 +94,7 @@ public class MainActivity extends Activity implements DefaultHardwareBackBtnHand
|
|||||||
## Usage example
|
## Usage example
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var ImageResizer = require('react-native-image-resizer');
|
import ImageResizer from 'react-native-image-resizer';
|
||||||
|
|
||||||
ImageResizer.createResizedImage(imageUri, newWidth, newHeight, compressFormat, quality).then((resizedImageUri) => {
|
ImageResizer.createResizedImage(imageUri, newWidth, newHeight, compressFormat, quality).then((resizedImageUri) => {
|
||||||
// resizeImageUri is the URI of the new image that can now be displayed, uploaded...
|
// resizeImageUri is the URI of the new image that can now be displayed, uploaded...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user