only-if-cached: The existing cache data will be used to satisfy a request, regardless of its age or expiration date.If there is no existing data in the cache corresponding the request, the data is loaded from the originating source. force-cache: The existing cached data will be used to satisfy the request, regardless of its age or expiration date.No existing cache data should be used to satisfy a URL load request. reload: The data for the URL will be loaded from the originating source.default: Use the native platforms default strategy.TypeĮnum( 'default', 'reload', 'force-cache', 'only-if-cached') TypeĮnum which can be used to set the cache handling or stategy for the potentially cached responses. TypeĬhanges the color of all non-transparent pixels to the tintColor. Image Style Props, Layout Props, Shadow Props, TransformsĪ unique identifier for this element to be used in UI Automation testing scripts. This prop has precedence over both the src and source props. If srcSet does not contain a 1x descriptor, the value in src is used as image source with 1x descriptor (if provided). If no descriptor is specified, it defaults to descriptor of 1x. Each image source contains a URL of an image and a pixel density descriptor. This prop has precedence over source prop.Ī string representing comma separated list of possible candidate image source. TypeĪ string representing the remote URL of the image. Refer to Apple's documentation for the current list of supported camera models (for iOS 12, see ). In addition, iOS supports several RAW image formats. The currently supported formats are png, jpg, jpeg, bmp, gif, webp, psd (iOS only). (For more information see Cache Control for Images). A cache property can be added to control how networked request interacts with the local cache. The native side will then choose the best uri to display based on the measured size of the image container. This prop can also contain several remote URLs, specified together with their width and height and potentially with scale/other URI arguments. The image source (either a remote URL or a local file resource). If the image is larger than the view, scale it down uniformly so that it is contained in the view.Įnum( 'cover', 'contain', 'stretch', 'repeat', 'center') The image will keep its size and aspect ratio, unless it is larger than the view, in which case it will be scaled down uniformly so that it is contained in the view.Ĭenter: Center the image in the view along both dimensions. Repeat: Repeat the image to cover the frame of the view. Stretch: Scale width and height independently, This may change the aspect ratio of the src. at least one dimension of the scaled image will be equal to the corresponding dimension of the view (minus padding)Ĭontain: 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).both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).Defaults to cover.Ĭover: Scale the image uniformly (maintain the image's aspect ratio) so that TypeĮnum( 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url')ĭetermines how to resize the image when the frame doesn't match the raw image dimensions. Works similar to referrerpolicy attribute in HTML. Sets the value for Referrer-Policy header in the image request. TypeĪ string indicating which referrer to use when fetching the resource. More details about resize and scale can be found at. It should also be used if the image is slightly bigger than the view. This should be used if the image is smaller than the view. Compared to resize, scale is faster (usually hardware accelerated) and produces higher quality images. Scale: The image gets drawn downscaled or upscaled. This should be used instead of scale when the image is much larger than the view. Resize: A software operation which changes the encoded image in memory before it gets decoded. Defaults to auto.Īuto: Use heuristics to pick between resize and scale. The mechanism that should be used to resize the image when the image's dimensions differ from the image view's dimensions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |