diff --git a/releases/next/docs/textinput.html b/releases/next/docs/textinput.html index 6fdf8d12508..4a602217224 100644 --- a/releases/next/docs/textinput.html +++ b/releases/next/docs/textinput.html @@ -91,7 +91,7 @@ The default value is false.

blurOnSubmit to true means that pressing return will blur the field and trigger the -onSubmitEditing event instead of inserting a newline into the field.

defaultValue PropTypes.string #

Provides an initial value that will change when the user starts typing. +onSubmitEditing event instead of inserting a newline into the field.

defaultValue PropTypes.node #

Provides an initial value that will change when the user starts typing. Useful for simple use-cases where you do not want to deal with listening to events and updating the value prop to keep the controlled state in sync.

editable PropTypes.bool #

If false, text is not editable. The default value is true.

keyboardType PropTypes.oneOf([ // Cross-platform @@ -114,7 +114,7 @@ The default value is false.

onContentSizeChange PropTypes.func #

Callback that is called when the text input's content size changes. This will be called with { nativeEvent: { contentSize: { width, height } } }.

Only called for multiline text inputs.

onEndEditing PropTypes.func #

Callback that is called when text input ends.

onFocus PropTypes.func #

Callback that is called when the text input is focused.

onLayout PropTypes.func #

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

onSelectionChange PropTypes.func #

Callback that is called when the text input selection is changed.

onSubmitEditing PropTypes.func #

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

placeholder PropTypes.string #

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

placeholderTextColor color #

The text color of the placeholder string.

returnKeyType PropTypes.oneOf([ +Invalid if multiline={true} is specified.

placeholder PropTypes.node #

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

placeholderTextColor color #

The text color of the placeholder string.

returnKeyType PropTypes.oneOf([ // Cross-platform 'done', 'go', diff --git a/releases/next/docs/view.html b/releases/next/docs/view.html index ae84d14b297..388d5bab031 100644 --- a/releases/next/docs/view.html +++ b/releases/next/docs/view.html @@ -16,7 +16,7 @@ padding.

class } }

Views are designed to be used with StyleSheet for clarity and performance, although inline styles are also supported.

Synthetic Touch Events #

For View responder props (e.g., onResponderMove), the synthetic touch event passed to them -are of the following form:

  • nativeEvent
    • changedTouches - Array of all touch events that have changed since the last event.
    • identifier - The ID of the touch.
    • locationX - The X position of the touch, relative to the element.
    • locationY - The Y position of the touch, relative to the element.
    • pageX - The X position of the touch, relative to the root element.
    • pageY - The Y position of the touch, relative to the root element.
    • target - The node id of the element receiving the touch event.
    • timestamp - A time identifier for the touch, useful for velocity calculation.
    • touches - Array of all current touches on the screen.

Props #

accessibilityLabel PropTypes.string #

Overrides the text that's read by the screen reader when the user interacts +are of the following form:

  • nativeEvent
    • changedTouches - Array of all touch events that have changed since the last event.
    • identifier - The ID of the touch.
    • locationX - The X position of the touch, relative to the element.
    • locationY - The Y position of the touch, relative to the element.
    • pageX - The X position of the touch, relative to the root element.
    • pageY - The Y position of the touch, relative to the root element.
    • target - The node id of the element receiving the touch event.
    • timestamp - A time identifier for the touch, useful for velocity calculation.
    • touches - Array of all current touches on the screen.

Props #

accessibilityLabel PropTypes.node #

Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.

accessible PropTypes.bool #

When true, indicates that the view is an accessibility element. By default, all the touchable elements are accessible.

hitSlop {top: number, left: number, bottom: number, right: number} #

This defines how far a touch event can start away from the view.