Skip to content

Commit f620c42

Browse files
authored
Add documentation for none resizeMethod (facebook#4257)
* Add documentation for `none` resizeMethod * Fix quotation marks around `none` option
1 parent 933e4fc commit f620c42

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/image.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,13 @@ The mechanism that should be used to resize the image when the image's dimension
336336

337337
- `scale`: The image gets drawn downscaled or upscaled. Compared to `resize`, `scale` is faster (usually hardware accelerated) and produces higher quality images. This should be used if the image is smaller than the view. It should also be used if the image is slightly bigger than the view.
338338

339+
- `none`: No sampling is performed and the image is displayed in its full resolution. This should only be used in rare circumstances because it is considered unsafe as Android will throw a runtime exception when trying to render images that consume too much memory.
340+
339341
More details about `resize` and `scale` can be found at https://frescolib.org/docs/resizing.
340342

341-
| Type | Default |
342-
| ------------------------------------- | -------- |
343-
| enum(`'auto'`, `'resize'`, `'scale'`) | `'auto'` |
343+
| Type | Default |
344+
| ----------------------------------------------- | -------- |
345+
| enum(`'auto'`, `'resize'`, `'scale'`, `'none'`) | `'auto'` |
344346

345347
---
346348

0 commit comments

Comments
 (0)