Skip to content

Commit d8b446d

Browse files
authored
feat: upgrade dependencies and image upload api
* feat: upgrade dependencies and image upload api * chore: update test snapshots
1 parent 7537370 commit d8b446d

File tree

14 files changed

+38404
-24069
lines changed

14 files changed

+38404
-24069
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/codenaz/react-multiple-image-input.svg?branch=master)](https://travis-ci.org/codenaz/react-multiple-image-input)
44

5-
![demo](https://s4.gifyu.com/images/multiple-image-upload.gif)
5+
![demo](https://res.cloudinary.com/dyjqbwicx/image/upload/v1725403003/ezgif.com-video-to-gif-converter_m4fuo1.gif)
66

77
Requires react >= 16.8.0
88

@@ -113,21 +113,17 @@ crop: {
113113
<MultiImageInput cropConfig={{crop}} />
114114
```
115115

116-
If you want a fixed aspect you can either omit `width` and `height`:
116+
If you want a fixed aspect you can either omit `width` and `height` and pass aspect to the cropConfig:
117117

118118
```js
119-
crop: {
120-
aspect: 16 / 9;
121-
}
119+
120+
cropConfig = {crop: {}, aspect: 16 / 9};
122121
```
123122

124123
Or specify one or both of the dimensions:
125124

126125
```js
127-
crop: {
128-
aspect: 16/9,
129-
width: 50,
130-
}
126+
cropConfig = {crop: {width: 100}, aspect: 16 / 9};
131127
```
132128

133129
If you specify just one of the dimensions, the other will be calculated for you.

dist/index.cjs.js

Lines changed: 2825 additions & 4149 deletions
Large diffs are not rendered by default.

dist/index.esm.js

Lines changed: 2814 additions & 4153 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)