From 11bd9ea8e60fcb138129a15740a4a6ed3d7ddc2f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 4 Jan 2016 15:48:17 +0000 Subject: [PATCH] update website --- docs/image.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/image.html b/docs/image.html index 9cb06e5c1da..12b94478b72 100644 --- a/docs/image.html +++ b/docs/image.html @@ -5,7 +5,7 @@ images from local disk, such as the camera roll.

Example usage:

> <Image style={styles.icon} - source={require('image!myIcon')} + source={require('./myIcon.png')} /> <Image style={styles.logo} @@ -22,7 +22,7 @@ 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.

source {uri: string}, number #

uri is a string representing the resource identifier for the image, which could be an http address, a local file path, or the name of a static image -resource (which should be wrapped in the require('image!name') function).

style style #

resizeMode Object.keys(ImageResizeMode)
backfaceVisibility enum('visible', 'hidden')
backgroundColor ColorPropType
borderColor ColorPropType
borderWidth number
borderRadius number
overflow enum('visible', 'hidden')
tintColor ColorPropType
opacity number

testID string #

A unique identifier for this element to be used in UI Automation +resource (which should be wrapped in the require('./path/to/image.png') function).

style style #

resizeMode Object.keys(ImageResizeMode)
backfaceVisibility enum('visible', 'hidden')
backgroundColor ColorPropType
borderColor ColorPropType
borderWidth number
borderRadius number
overflow enum('visible', 'hidden')
tintColor ColorPropType
opacity number

testID string #

A unique identifier for this element to be used in UI Automation testing scripts.

iosaccessibilityLabel string #

The text that's read by the screen reader when the user interacts with the image.

iosaccessible bool #

When true, indicates the image is an accessibility element.

ioscapInsets {top: number, left: number, bottom: number, right: number} #

When the image is resized, the corners of the size specified by capInsets will stay a fixed size, but the center content and borders