From da34f88acb6b545b03a54b02c3ee50fd0f9b3f27 Mon Sep 17 00:00:00 2001
From: Travis CI
It provides a predictable wrapper o
gesture responder system.
For each handler, it provides a new gestureState object alongside the
native event object:
A native event is a synthetic touch event with the following form:
nativeEventchangedTouches - Array of all touch events that have changed since the last eventidentifier - The ID of the touchlocationX - The X position of the touch, relative to the elementlocationY - The Y position of the touch, relative to the elementpageX - The X position of the touch, relative to the root elementpageY - The Y position of the touch, relative to the root elementtarget - The node id of the element receiving the touch eventtimestamp - A time identifier for the touch, useful for velocity calculationtouches - Array of all current touches on the screenA gestureState object has the following:
stateID - ID of the gestureState- persisted as long as there at least
- one touch on screenmoveX - the latest screen coordinates of the recently-moved touchmoveY - the latest screen coordinates of the recently-moved touchx0 - the screen coordinates of the responder granty0 - the screen coordinates of the responder grantdx - accumulated distance of the gesture since the touch starteddy - accumulated distance of the gesture since the touch startedvx - current velocity of the gesturevy - current velocity of the gesturenumberActiveTouches - Number of touches currently on screeenmoveX - the latest screen coordinates of the recently-moved touchmoveY - the latest screen coordinates of the recently-moved touchx0 - the screen coordinates of the responder granty0 - the screen coordinates of the responder grantdx - accumulated distance of the gesture since the touch starteddy - accumulated distance of the gesture since the touch startedvx - current velocity of the gesturevy - current velocity of the gesturenumberActiveTouches - Number of touches currently on screenExample:
/> ); },Color of the progress bar.
If the progress bar will show indeterminate progress. Note that this -can only be false if styleAttr is Horizontal.
The progress value (between 0 and 1).
Style of the ProgressBar. One of:
Used to locate this view in end-to-end tests.
The progress value (between 0 and 1).
Style of the ProgressBar. One of:
Used to locate this view in end-to-end tests.
Schedules the localNotification for immediate presentation.
details is an object containing:
alertBody : The message displayed in the notification alert.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.Cancels all scheduled localNotifications
Sets the badge number for the app icon on the home screen
Gets the current badge number for the app icon on the home screen
Attaches a listener to remote notification events while the app is running + }
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).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).Cancels all scheduled localNotifications
Sets the badge number for the app icon on the home screen
Gets the current badge number for the app icon on the home screen
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.Limits the maximum number of characters that can be entered. Use this instead of implementing the logic in JS to avoid flicker.
If true, the text input can be multiple lines. The default value is false.
Callback that is called when the text input is blurred
Callback that is called when the text input's text changes.
Callback that is called when the text input's text changes. -Changed text is passed as an argument to the callback handler.
Callback that is called when text input ends.
Callback that is called when the text input is focused
Invoked on mount and layout changes with {x, y, width, height}.
Callback that is called when the text input's submit button is pressed. +Changed text is passed as an argument to the callback handler.
Callback that is called when text input ends.
Callback that is called when the text input is focused
Invoked on mount and layout changes with {x, y, width, height}.
Callback that is called when the text input selection is changed
Callback that is called when the text input's submit button is pressed. Invalid if multiline={true} is specified.
The string that will be rendered before text input has been entered
The text color of the placeholder string
If true, the text input obscures the text entered so that sensitive text like passwords stay secure. The default value is false.
Styles
Used to locate this view in end-to-end tests
The value to show for the text input. TextInput is a controlled component, which means the native value will be forced to match this