Update example to use `import` syntax

This commit is contained in:
Alexandre Moureaux 2016-03-09 14:30:54 +01:00
parent f3a1cab919
commit 590ae1d7fe
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public class MainActivity extends Activity implements DefaultHardwareBackBtnHand
## Usage example
```javascript
var ImageResizer = require('react-native-image-resizer');
import ImageResizer from 'react-native-image-resizer';
ImageResizer.createResizedImage(imageUri, newWidth, newHeight, compressFormat, quality).then((resizedImageUri) => {
// resizeImageUri is the URI of the new image that can now be displayed, uploaded...