Skip to content

Commit daef618

Browse files
author
Veselina Radeva
committed
doc: Remove example for scaling images since we now provide aspectRatio option
1 parent b6747d3 commit daef618

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,26 +75,6 @@ context
7575
7676
> **NOTE**: To request permissions for Android 6+ (API 23+) we use [nativescript-permissions](https://www.npmjs.com/package/nativescript-permissions).
7777
78-
### Process the selection with scaling images to specified dimensions and returning ImageSource object
79-
80-
```
81-
context
82-
.authorize()
83-
.then(function() {
84-
return context.present();
85-
})
86-
.then(function(selection) {
87-
selection.forEach((selectedPhoto) => {
88-
selectedPhoto.getImage({ maxWidth: 500, maxHeight: 500 }) // maintains aspect ratio
89-
.then((imageSource) => {
90-
// process the selected image
91-
});
92-
});
93-
}).catch(function (e) {
94-
// process error
95-
});
96-
```
97-
9878
## API
9979
10080
### Methods

0 commit comments

Comments
 (0)