Skip to content

Commit 5a67ff2

Browse files
authored
Merge pull request #105 from coconautti/fix-documentation-default-resize-mode
Fix documentation for default resize mode.
2 parents 8aa6c6b + 0778939 commit 5a67ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ Headers to load the image with. e.g. `{ Authorization: 'someAuthToken' }`.
9393

9494
### `resizeMode?: enum`
9595

96-
- `FastImage.resizeMode.contain` **(Default)** - Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).
97-
- `FastImage.resizeMode.cover` - Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).
96+
- `FastImage.resizeMode.contain` - Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).
97+
- `FastImage.resizeMode.cover` **(Default)** - Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).
9898
- `FastImage.resizeMode.stretch` - Scale width and height independently, This may change the aspect ratio of the src.
9999
- `FastImage.resizeMode.center` - Do not scale the image, keep centered.
100100

0 commit comments

Comments
 (0)