From 21b08cf2af63f006924ae05f606d19b0219a30bf Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 16 Sep 2015 17:47:35 +0000 Subject: [PATCH] update website --- docs/asyncstorage.html | 2 +- docs/panresponder.html | 2 +- docs/switchandroid.html | 2 +- docs/toastandroid.html | 2 +- docs/touchableopacity.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/asyncstorage.html b/docs/asyncstorage.html index 2c7ee115f27..d5b3a56e342 100644 --- a/docs/asyncstorage.html +++ b/docs/asyncstorage.html @@ -9,7 +9,7 @@ there is any. Returns a Promise object.

static getAllKeys(callback?: ?(error: ?Error, keys: ?Array<string>) => void) #

Gets all keys known to the app, for all callers, libraries, etc. Returns a Promise object.

static multiGet(keys: Array<string>, callback?: ?(errors: ?Array<Error>, result: ?Array<Array<string>>) => void) #

multiGet invokes callback with an array of key-value pair arrays that matches the input format of multiSet. Returns a Promise object.

multiGet(['k1', 'k2'], cb) -> cb([['k1', 'val1'], ['k2', 'val2']])

static multiSet(keyValuePairs: Array<Array<string>>, callback?: ?(errors: ?Array<Error>) => void) #

multiSet and multiMerge take arrays of key-value array pairs that match -the output of multiGet. Returns a Promise object.

multiSet([['k1', 'val1'], ['k2', 'val2']], cb);

static multiRemove(keys: Array<string>, callback?: ?(errors: ?Array<Error>) => void) #

Delete all the keys in the keys array. Returns a Promise object.

static multiMerge(keyValuePairs: Array<Array<string>>, callback?: ?(errors: ?Array<Error>) => void) #

Merges existing values with input values, assuming they are stringified +the output of multiGet, e.g. Returns a Promise object.

multiSet([['k1', 'val1'], ['k2', 'val2']], cb);

static multiRemove(keys: Array<string>, callback?: ?(errors: ?Array<Error>) => void) #

Delete all the keys in the keys array. Returns a Promise object.

static multiMerge(keyValuePairs: Array<Array<string>>, callback?: ?(errors: ?Array<Error>) => void) #

Merges existing values with input values, assuming they are stringified json. Returns a Promise object.

Not supported by all native implementations.

Edit on GitHubExamples #

'use strict'; var React = require('react-native'); diff --git a/docs/panresponder.html b/docs/panresponder.html index f4f91360a2f..ab0dc32429d 100644 --- a/docs/panresponder.html +++ b/docs/panresponder.html @@ -5,7 +5,7 @@ recognize simple multi-touch gestures.

It provides a predictable wrapper o For each handler, it provides a new gestureState object alongside the normal event.

A gestureState object has the following:

  • stateID - ID of the gestureState- persisted as long as there at least one touch on screen
  • moveX - the latest screen coordinates of the recently-moved touch
  • moveY - the latest screen coordinates of the recently-moved touch
  • x0 - the screen coordinates of the responder grant
  • y0 - the screen coordinates of the responder grant
  • dx - accumulated distance of the gesture since the touch started
  • dy - accumulated distance of the gesture since the touch started
  • vx - current velocity of the gesture
  • vy - current velocity of the gesture
  • numberActiveTouches - Number of touches currently on screeen

Basic Usage #

componentWillMount: function() { - this._panResponder = PanResponder.create({ + this._panGesture = PanResponder.create({ // Ask to be the responder: onStartShouldSetPanResponder: (evt, gestureState) => true, onStartShouldSetPanResponderCapture: (evt, gestureState) => true, diff --git a/docs/switchandroid.html b/docs/switchandroid.html index 67a0c5b0ea9..1483cc53c47 100644 --- a/docs/switchandroid.html +++ b/docs/switchandroid.html @@ -10,7 +10,7 @@ var SwitchAndroidExample = React.createClass({ statics: { title: '<SwitchAndroid>', - description: 'Standard Android two-state toggle component' + description: 'Standard Android two-state toggle component.' }, getInitialState : function() { diff --git a/docs/toastandroid.html b/docs/toastandroid.html index ddc3ce6b2a0..37d2e7363ff 100644 --- a/docs/toastandroid.html +++ b/docs/toastandroid.html @@ -16,7 +16,7 @@ which takes the following parameters:

  1. String message: A string with t statics: { title: 'Toast Example', - description: 'Toast Example', + description: 'Example that demostrates the use of an Android Toast to provide feedback.', }, getInitialState: function() { diff --git a/docs/touchableopacity.html b/docs/touchableopacity.html index 52193f3864b..4a8a067c427 100644 --- a/docs/touchableopacity.html +++ b/docs/touchableopacity.html @@ -10,7 +10,7 @@ easy to add to an app without weird side-effects.

    Example:

    /> </TouchableOpacity> ); -},

    NOTE: TouchableOpacity supports only one child

    If you wish to have to have several child components, wrap them in a View.

Edit on GitHubProps #

activeOpacity number #

Determines what the opacity of the wrapped view should be when touch is +},

Edit on GitHubProps #

activeOpacity number #

Determines what the opacity of the wrapped view should be when touch is active.

© 2015 Facebook Inc.