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…
Reference in New Issue