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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |