From 9626f0a5e6a0f00c006ebd44d14743d2b4726dcc Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Sat, 22 Feb 2020 01:28:19 +0000 Subject: [PATCH] Deploy website Deploy website version based on 601baa6768b86f543ef9f672e959df54c7f00506 --- docs/next/image.html | 302 +++++++++---------- docs/next/image/index.html | 302 +++++++++---------- docs/next/touchablenativefeedback.html | 71 ++++- docs/next/touchablenativefeedback/index.html | 71 ++++- 4 files changed, 418 insertions(+), 328 deletions(-) diff --git a/docs/next/image.html b/docs/next/image.html index 431b9589721..d4ee69e842c 100644 --- a/docs/next/image.html +++ b/docs/next/image.html @@ -93,11 +93,11 @@ paddingTop: 50, }, tinyLogo: { - width: 50, + width: 50, height: 50, }, logo: { - width: 66, + width: 66, height: 58, }, }); @@ -130,7 +130,7 @@ export default DisplayAnImage;
paddingTop: 50, }, tinyLogo: { - width: 50, + width: 50, height: 50, }, logo: { - width: 66, + width: 66, height: 58, }, }); @@ -185,7 +185,7 @@ export default DisplayAnImage;
For details of how this works under the hood, see http://frescolib.org/docs/rounded-corners-and-circles.html


+

accessible

+

When true, indicates the image is an accessibility element.

+ + + + + + + +
TypeRequiredPlatform
boolNoiOS
+
+

accessibilityLabel

+

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

+ + + + + + + +
TypeRequiredPlatform
stringNoiOS
+

blurRadius

blurRadius: the blur radius of the blur filter added to the image

@@ -367,6 +389,78 @@ export default DisplayAnImageWithStyle;

Tip : IOS you will need to increase blurRadius more than 5


+

capInsets

+

When the image is resized, the corners of the size specified by capInsets will stay a fixed size, but the center content and borders of the image will be stretched. This is useful for creating resizable rounded buttons, shadows, and other resizable assets. More info in the official Apple documentation.

+
+ + + + + + +
TypeRequiredPlatform
object: {top: number, left: number, bottom: number, right: number}NoiOS
+
+

defaultSource

+

A static image to display while loading the image source.

+ + + + + + + + +
TypeRequiredPlatform
object, numberNoiOS
numberNoAndroid
+

If passing an object, the general shape is {uri: string, width: number, height: number, scale: number}:

+
    +
  • uri - a string representing the resource identifier for the image, which should be either a local file path or the name of a static image resource (which should be wrapped in the require('./path/to/image.png') function).
  • +
  • width, height - can be specified if known at build time, in which case these will be used to set the default <Image/> component dimensions.
  • +
  • scale - used to indicate the scale factor of the image. Defaults to 1.0 if unspecified, meaning that one image pixel equates to one display point / DIP.
  • +
+

If passing a number:

+
    +
  • number - Opaque type returned by something like require('./image.jpg').
  • +
+
+

Note: On Android, the default source prop is ignored on debug builds.

+
+
+

fadeDuration

+

Android only. By default, it is 300ms.

+ + + + + + + +
TypeRequiredPlatform
numberNoAndroid
+
+

loadingIndicatorSource

+

Similarly to source, this property represents the resource used to render the loading indicator for the image, displayed until image is ready to be displayed, typically after when it got downloaded from network.

+ + + + + + + +
TypeRequired
array of ImageSourcePropTypes, numberNo
+
+

Can accept a number as returned by require('./image.jpg')

+
+
+

onError

+

Invoked on load error with {nativeEvent: {error}}.

+ + + + + + + +
TypeRequired
functionNo
+

onLayout

Invoked on mount and layout changes with {nativeEvent: {layout: {x, y, width, height}}}.

@@ -412,6 +506,56 @@ export default DisplayAnImageWithStyle;

+

onPartialLoad

+

Invoked when a partial load of the image is complete. The definition of what constitutes a "partial load" is loader specific though this is meant for progressive JPEG loads.

+ + + + + + + +
TypeRequiredPlatform
functionNoiOS
+
+

onProgress

+

Invoked on download progress with {nativeEvent: {loaded, total}}.

+ + + + + + + +
TypeRequiredPlatform
functionNoiOS
+
+

progressiveRenderingEnabled

+

Android only. When true, enables progressive jpeg streaming. https://frescolib.org/docs/progressive-jpegs.html

+ + + + + + + +
TypeRequiredPlatform
boolNoAndroid
+
+

resizeMethod

+

The mechanism that should be used to resize the image when the image's dimensions differ from the image view's dimensions. Defaults to auto.

+
    +
  • auto: Use heuristics to pick between resize and scale.

  • +
  • resize: A software operation which changes the encoded image in memory before it gets decoded. This should be used instead of scale when the image is much larger than the view.

  • +
  • scale: The image gets drawn downscaled or upscaled. Compared to resize, scale is faster (usually hardware accelerated) and produces higher quality images. This should be used if the image is smaller than the view. It should also be used if the image is slightly bigger than the view.

  • +
+

More details about resize and scale can be found at http://frescolib.org/docs/resizing.html.

+ + + + + + + +
TypeRequiredPlatform
enum('auto', 'resize', 'scale')NoAndroid
+

resizeMode

Determines how to resize the image when the frame doesn't match the raw image dimensions. Defaults to cover.

    @@ -443,31 +587,6 @@ export default DisplayAnImageWithStyle;
    -

    loadingIndicatorSource

    -

    Similarly to source, this property represents the resource used to render the loading indicator for the image, displayed until image is ready to be displayed, typically after when it got downloaded from network.

    - - - - - - - -
    TypeRequired
    array of ImageSourcePropTypes, numberNo
    -
    -

    Can accept a number as returned by require('./image.jpg')

    -
    -
    -

    onError

    -

    Invoked on load error with {nativeEvent: {error}}.

    - - - - - - - -
    TypeRequired
    functionNo
    -

    testID

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

    @@ -478,125 +597,6 @@ export default DisplayAnImageWithStyle;
    stringNo
    -
    -

    resizeMethod

    -

    The mechanism that should be used to resize the image when the image's dimensions differ from the image view's dimensions. Defaults to auto.

    -
      -
    • auto: Use heuristics to pick between resize and scale.

    • -
    • resize: A software operation which changes the encoded image in memory before it gets decoded. This should be used instead of scale when the image is much larger than the view.

    • -
    • scale: The image gets drawn downscaled or upscaled. Compared to resize, scale is faster (usually hardware accelerated) and produces higher quality images. This should be used if the image is smaller than the view. It should also be used if the image is slightly bigger than the view.

    • -
    -

    More details about resize and scale can be found at http://frescolib.org/docs/resizing.html.

    - - - - - - - -
    TypeRequiredPlatform
    enum('auto', 'resize', 'scale')NoAndroid
    -
    -

    accessibilityLabel

    -

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

    - - - - - - - -
    TypeRequiredPlatform
    stringNoiOS
    -
    -

    accessible

    -

    When true, indicates the image is an accessibility element.

    - - - - - - - -
    TypeRequiredPlatform
    boolNoiOS
    -
    -

    capInsets

    -

    When the image is resized, the corners of the size specified by capInsets will stay a fixed size, but the center content and borders of the image will be stretched. This is useful for creating resizable rounded buttons, shadows, and other resizable assets. More info in the official Apple documentation.

    - - - - - - - -
    TypeRequiredPlatform
    object: {top: number, left: number, bottom: number, right: number}NoiOS
    -
    -

    defaultSource

    -

    A static image to display while loading the image source.

    - - - - - - - - -
    TypeRequiredPlatform
    object, numberNoiOS
    numberNoAndroid
    -

    If passing an object, the general shape is {uri: string, width: number, height: number, scale: number}:

    -
      -
    • uri - a string representing the resource identifier for the image, which should be either a local file path or the name of a static image resource (which should be wrapped in the require('./path/to/image.png') function).
    • -
    • width, height - can be specified if known at build time, in which case these will be used to set the default <Image/> component dimensions.
    • -
    • scale - used to indicate the scale factor of the image. Defaults to 1.0 if unspecified, meaning that one image pixel equates to one display point / DIP.
    • -
    -

    If passing a number:

    -
      -
    • number - Opaque type returned by something like require('./image.jpg').
    • -
    -
    -

    Note: On Android, the default source prop is ignored on debug builds.

    -
    -
    -

    onPartialLoad

    -

    Invoked when a partial load of the image is complete. The definition of what constitutes a "partial load" is loader specific though this is meant for progressive JPEG loads.

    - - - - - - - -
    TypeRequiredPlatform
    functionNoiOS
    -
    -

    onProgress

    -

    Invoked on download progress with {nativeEvent: {loaded, total}}.

    - - - - - - - -
    TypeRequiredPlatform
    functionNoiOS
    -
    -

    fadeDuration

    -

    Android only. By default, it is 300ms.

    - - - - - - - -
    TypeRequiredPlatform
    numberNoAndroid
    -
    -

    progressiveRenderingEnabled

    -

    Android only. When true, enables progressive jpeg streaming. https://frescolib.org/docs/progressive-jpegs.html

    - - - - - - - -
    TypeRequiredPlatform
    boolNoAndroid

    Methods

    getSize()

    Image.getSize(uri, success, [failure]);
    @@ -692,7 +692,7 @@ export default DisplayAnImageWithStyle;
     

    ImageSource is an object like { uri: '<http location || file path>' }

    -