From ebfca5d9e798f0bc02da75b0c2548d24a2f9eec1 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Wed, 5 Apr 2017 18:28:10 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/flatlist.html | 2 +- releases/next/docs/image.html | 4 ++-- releases/next/docs/scrollview.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/releases/next/docs/flatlist.html b/releases/next/docs/flatlist.html index f27e731f36a..fe1d81639af 100644 --- a/releases/next/docs/flatlist.html +++ b/releases/next/docs/flatlist.html @@ -279,7 +279,7 @@ class FlatListExample extends this._listRef.getNode().recordInteraction(); pressItem(this, key); }; - _listRef: FlatList<*>; + _listRef: AnimatedFlatList; } diff --git a/releases/next/docs/image.html b/releases/next/docs/image.html index 3cc3e9d0107..fae90574c2e 100644 --- a/releases/next/docs/image.html +++ b/releases/next/docs/image.html @@ -103,14 +103,14 @@ should be either a local file path or the name of a static image resource 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.
  • number - Opaque type returned by something like require('./image.jpg').
  • iosonPartialLoad?: function #

    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.

    iosonProgress?: function #

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

    Methods #

    static getSize(uri: string, success: function, failure: function): #

    Retrieve the width and height (in pixels) of an image prior to displaying it. +for progressive JPEG loads.

    iosonProgress?: function #

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

    Methods #

    static getSize(uri: string, success: function, failure?: function): #

    Retrieve the width and height (in pixels) of an image prior to displaying it. This method can fail if the image cannot be found, or fails to download.

    In order to retrieve the image dimensions, the image may first need to be loaded or downloaded, after which it will be cached. This means that in principle you could use this method to preload images, however it is not optimized for that purpose, and may in future be implemented in a way that does not fully load/download the image data. A proper, supported way to preload images will be provided as a separate API.

    Does not work for static image resources.

    Parameters:
    Name and TypeDescription
    uri

    string

    The location of the image.

    success

    function

    The function that will be called if the image was successfully found and width -and height retrieved.

    failure

    function

    The function that will be called if there was an error, such as failing to +and height retrieved.

    [failure]

    function

    The function that will be called if there was an error, such as failing to to retrieve the image.

    static prefetch(url: string): #

    Prefetches a remote image for later use by downloading it to the disk cache

    Parameters:
    Name and TypeDescription
    url

    string

    The remote location of the image.

    You can edit the content above on GitHub and send us a pull request!

    Examples #

    Edit on GitHub
    'use strict'; diff --git a/releases/next/docs/scrollview.html b/releases/next/docs/scrollview.html index 4d13c08757d..1f8060e5858 100644 --- a/releases/next/docs/scrollview.html +++ b/releases/next/docs/scrollview.html @@ -161,7 +161,7 @@ exports.examples : 'You can display <ScrollView>\'s child components horizontally rather than vertically', render: function() { - function renderScrollView(title: string, addtionalStyles: StyleSheet) { + function renderScrollView(title: string, addtionalStyles: typeof StyleSheet) { var _scrollView: ScrollView; return ( <View style={addtionalStyles}>