From 217a7e1a9804ab0a239abb16a54ba74dad0cece4 Mon Sep 17 00:00:00 2001
From: Website Deployment Script
Example usage:
Invoked on mount and layout changes with
-{nativeEvent: {layout: {x, y, width, height}}}.
Invoked when load completes successfully
Invoked when load either succeeds or fails
Invoked on load start
Determines how to resize the image when the frame doesn't match the raw
+{nativeEvent: {layout: {x, y, width, height}}}.
Invoked when load completes successfully
Invoked when load either succeeds or fails
Invoked on load start
Determines how to resize the image when the frame doesn't match the raw image dimensions.
'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).
'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).
'stretch': Scale width and height independently, This may change the -aspect ratio of the src.
The image source (either a remote URL or a local file resource).
Changes the color of all the non-transparent pixels to the tintColor.
When the image has rounded corners, specifying an overlayColor will +aspect ratio of the src.
'repeat': Repeat the image to cover the frame of the view. The +image will keep it's size and aspect ratio. (iOS only)
The image source (either a remote URL or a local file resource).
Changes the color of all the non-transparent pixels to the tintColor.
When the image has rounded corners, specifying an overlayColor will cause the remaining space in the corners to be filled with a solid color. This is useful in cases which are not supported by the Android implementation of rounded corners: @@ -526,6 +527,18 @@ exports.examples ={image} /> </View> + { Platform.OS === 'ios' ? + <View style={styles.leftMargin}> + <Text style={[styles.resizeModeText]}> + Repeat + </Text> + <Image + style={styles.resizeMode} + resizeMode={Image.resizeMode.repeat} + source={image} + /> + </View> + : null } { Platform.OS === 'android' ? <View style={styles.leftMargin}> <Text style={[styles.resizeModeText]}>