mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-23 19:58:15 +00:00
Fix documentation for default resize mode
Documentation wrongly states that 'contain' is the default resize mode, when it in fact is 'cover'.
This commit is contained in:
parent
c508247542
commit
0778939658
@ -92,8 +92,8 @@ Headers to load the image with. e.g. `{ Authorization: 'someAuthToken' }`.
|
||||
|
||||
### `resizeMode?: enum`
|
||||
|
||||
- `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).
|
||||
- `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).
|
||||
- `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).
|
||||
- `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).
|
||||
- `FastImage.resizeMode.stretch` - Scale width and height independently, This may change the aspect ratio of the src.
|
||||
- `FastImage.resizeMode.center` - Do not scale the image, keep centered.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user