Skip to content

Commit 8be9de3

Browse files
author
dhruvtailor7
committed
review changes
1 parent ebd688b commit 8be9de3

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

docs/image.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,11 @@ When the image is resized, the corners of the size specified by `capInsets` will
264264
A string of a keyword specifying the CORS mode to use when fetching the image resource. It works similar to crossorigin attribute in HTML.
265265

266266
- `anonymous`: No exchange of user credentials in the image request.
267-
268267
- `use-credentials`: Sets `Access-Control-Allow-Credentials` header value to `true` in the image request.
269268

270-
| Type |
271-
| ---------------------------------------- |
272-
| enum(`'anonymous'`, `'use-credentials'`) |
269+
| Type | Default |
270+
| ---------------------------------------- | ------------- |
271+
| enum(`'anonymous'`, `'use-credentials'`) | `'anonymous'` |
273272

274273
---
275274

@@ -419,11 +418,11 @@ More details about `resize` and `scale` can be found at http://frescolib.org/doc
419418

420419
### `referrerPolicy`
421420

422-
A string indicating which referrer to use when fetching the resource. Sets the value for `Referrer-Policy` header in the image request. Works similar to referrerpolicy attribute in HTML.
421+
A string indicating which referrer to use when fetching the resource. Sets the value for `Referrer-Policy` header in the image request. Works similar to `referrerpolicy` attribute in HTML.
423422

424-
| Type |
425-
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
426-
| enum(`'no-referrer'`, `'no-referrer-when-downgrade'`, `'origin'`, `'origin-when-cross-origin'`, `'same-origin'`, `'strict-origin'`, `'strict-origin-when-cross-origin'`, `'unsafe-url'`) |
423+
| Type | Default |
424+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
425+
| enum(`'no-referrer'`, `'no-referrer-when-downgrade'`, `'origin'`, `'origin-when-cross-origin'`, `'same-origin'`, `'strict-origin'`, `'strict-origin-when-cross-origin'`, `'unsafe-url'`) | `'strict-origin-when-cross-origin'` |
427426

428427
---
429428

@@ -480,7 +479,7 @@ A string representing the remote URL of the image. This prop has precedence over
480479

481480
A string representing comma separated list of possible candidate image source. Each image source contains a URL of an image and a pixel density descriptor. If no descriptor is specified, it defaults to descriptor of `1x`.
482481

483-
If srcSet does not contain a `1x` descriptor, the value in src, if provided, is used as image source with `1x` descriptor.
482+
If `srcSet` does not contain a `1x` descriptor, the value in `src` is used as image source with `1x` descriptor (if provided).
484483

485484
This prop has precedence over both the `src` and `source` props.
486485

0 commit comments

Comments
 (0)