diff --git a/docs/panresponder.html b/docs/panresponder.html index 6f5ef5cfa3e..252c14eafb8 100644 --- a/docs/panresponder.html +++ b/docs/panresponder.html @@ -4,7 +4,7 @@ recognize simple multi-touch gestures.

It provides a predictable wrapper o gesture responder system. For each handler, it provides a new gestureState object alongside the native event object:

onPanResponderMove: (event, gestureState) => {}

A native event is a synthetic touch event with the following form:

A gestureState object has the following:

Basic Usage #

componentWillMount: function() { + 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 screen
  • Basic Usage #

    componentWillMount: function() { this._panResponder = PanResponder.create({ // Ask to be the responder: onStartShouldSetPanResponder: (evt, gestureState) => true, diff --git a/docs/progressbarandroid.html b/docs/progressbarandroid.html index 26a5560d9dc..051ed91003e 100644 --- a/docs/progressbarandroid.html +++ b/docs/progressbarandroid.html @@ -13,7 +13,7 @@ that the app is loading or there is some activity in the app.

    Example:

    /> ); },

    Edit on GitHubProps #

    View props... #

    color ColorPropType #

    Color of the progress bar.

    indeterminate indeterminateType #

    If the progress bar will show indeterminate progress. Note that this -can only be false if styleAttr is Horizontal.

    progress number #

    The progress value (between 0 and 1).

    styleAttr STYLE_ATTRIBUTES #

    Style of the ProgressBar. One of:

    • Horizontal
    • Small
    • Large
    • Inverse
    • SmallInverse
    • LargeInverse

    testID string #

    Used to locate this view in end-to-end tests.

    Edit on GitHubExamples #

    'use strict'; +can only be false if styleAttr is Horizontal.

    progress number #

    The progress value (between 0 and 1).

    styleAttr STYLE_ATTRIBUTES #

    Style of the ProgressBar. One of:

    testID string #

    Used to locate this view in end-to-end tests.

    Edit on GitHubExamples #

    'use strict'; var ProgressBar = require('ProgressBarAndroid'); var React = require('React'); @@ -60,6 +60,10 @@ can only be false if styleAttr is Horizontal.

    < <ProgressBar /> </UIExplorerBlock> + <UIExplorerBlock title="Normal ProgressBar"> + <ProgressBar styleAttr="Normal" /> + </UIExplorerBlock> + <UIExplorerBlock title="Small ProgressBar"> <ProgressBar styleAttr="Small" /> </UIExplorerBlock> diff --git a/docs/pushnotificationios.html b/docs/pushnotificationios.html index 1d4f572da9b..ae1be8d1920 100644 --- a/docs/pushnotificationios.html +++ b/docs/pushnotificationios.html @@ -15,7 +15,7 @@ and your server-side system. To get an idea, - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification { [RCTPushNotificationManager didReceiveRemoteNotification:notification]; - }

    Methods #

    static presentLocalNotification(details: Object) #

    Schedules the localNotification for immediate presentation.

    details is an object containing:

    • alertBody : The message displayed in the notification alert.

    static scheduleLocalNotification(details: Object) #

    Schedules the localNotification for future presentation.

    details is an object containing:

    • fireDate : The date and time when the system should deliver the notification.
    • alertBody : The message displayed in the notification alert.

    static cancelAllLocalNotifications() #

    Cancels all scheduled localNotifications

    static setApplicationIconBadgeNumber(number: number) #

    Sets the badge number for the app icon on the home screen

    static getApplicationIconBadgeNumber(callback: Function) #

    Gets the current badge number for the app icon on the home screen

    static addEventListener(type: string, handler: Function) #

    Attaches a listener to remote notification events while the app is running + }

    Methods #

    static presentLocalNotification(details: Object) #

    Schedules the localNotification for immediate presentation.

    details is an object containing:

    • alertBody : The message displayed in the notification alert.
    • soundName : The sound played when the notification is fired (optional).

    static scheduleLocalNotification(details: Object) #

    Schedules the localNotification for future presentation.

    details is an object containing:

    • fireDate : The date and time when the system should deliver the notification.
    • alertBody : The message displayed in the notification alert.
    • soundName : The sound played when the notification is fired (optional).

    static cancelAllLocalNotifications() #

    Cancels all scheduled localNotifications

    static setApplicationIconBadgeNumber(number: number) #

    Sets the badge number for the app icon on the home screen

    static getApplicationIconBadgeNumber(callback: Function) #

    Gets the current badge number for the app icon on the home screen

    static addEventListener(type: string, handler: Function) #

    Attaches a listener to remote notification events while the app is running in the foreground or the background.

    Valid events are:

    • notification : Fired when a remote notification is received. The handler will be invoked with an instance of PushNotificationIOS.
    • register: Fired when the user registers for remote notifications. The handler will be invoked with a hex string representing the deviceToken.

    static requestPermissions(permissions?: { diff --git a/docs/textinput.html b/docs/textinput.html index beb590e9688..3c1181d0ef8 100644 --- a/docs/textinput.html +++ b/docs/textinput.html @@ -17,7 +17,7 @@ to events and updating the value prop to keep the controlled state in sync.

    < - email-address

    maxLength number #

    Limits the maximum number of characters that can be entered. Use this instead of implementing the logic in JS to avoid flicker.

    multiline bool #

    If true, the text input can be multiple lines. The default value is false.

    onBlur function #

    Callback that is called when the text input is blurred

    onChange function #

    Callback that is called when the text input's text changes.

    onChangeText function #

    Callback that is called when the text input's text changes. -Changed text is passed as an argument to the callback handler.

    onEndEditing function #

    Callback that is called when text input ends.

    onFocus function #

    Callback that is called when the text input is focused

    onLayout function #

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

    onSubmitEditing function #

    Callback that is called when the text input's submit button is pressed. +Changed text is passed as an argument to the callback handler.

    onEndEditing function #

    Callback that is called when text input ends.

    onFocus function #

    Callback that is called when the text input is focused

    onLayout function #

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

    onSelectionChange function #

    Callback that is called when the text input selection is changed

    onSubmitEditing function #

    Callback that is called when the text input's submit button is pressed. Invalid if multiline={true} is specified.

    placeholder string #

    The string that will be rendered before text input has been entered

    placeholderTextColor string #

    The text color of the placeholder string

    secureTextEntry bool #

    If true, the text input obscures the text entered so that sensitive text like passwords stay secure. The default value is false.

    style Text#style #

    Styles

    testID string #

    Used to locate this view in end-to-end tests

    value string #

    The value to show for the text input. TextInput is a controlled component, which means the native value will be forced to match this