diff --git a/releases/next/docs/integration-with-existing-apps.html b/releases/next/docs/integration-with-existing-apps.html index 9803f3ea41c..3222a285cac 100644 --- a/releases/next/docs/integration-with-existing-apps.html +++ b/releases/next/docs/integration-with-existing-apps.html @@ -326,7 +326,7 @@ protected void onPause.onPause(); if (mReactInstanceManager != null) { - mReactInstanceManager.onPause(this); + mReactInstanceManager.onHostPause(this); } } @@ -335,7 +335,7 @@ protected void onResume.onResume(); if (mReactInstanceManager != null) { - mReactInstanceManager.onResume(this, this); + mReactInstanceManager.onHostResume(this, this); } } @@ -344,7 +344,7 @@ protected void onDestroy.onDestroy(); if (mReactInstanceManager != null) { - mReactInstanceManager.onDestroy(); + mReactInstanceManager.onHostDestroy(); } }

We also need to pass back button events to React Native:

@Override public void onBackPressed() { diff --git a/releases/next/docs/textinput.html b/releases/next/docs/textinput.html index 6c7884c4b0b..9dd6c2c05d6 100644 --- a/releases/next/docs/textinput.html +++ b/releases/next/docs/textinput.html @@ -98,7 +98,9 @@ instead of implementing the logic in JS to avoid flicker.

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.

onContentSizeChange function #

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 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. +{ nativeEvent: { contentSize: { width, height } } }.

Only called for multiline text inputs.

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}.

onScroll function #

Invoked on content scroll with { nativeEvent: { contentOffset: { x, y } } }. +May also contain other properties from ScrollEvent but on Android contentSize +is not provided for performance reasons.

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 node #

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

placeholderTextColor color #

The text color of the placeholder string.

returnKeyType enum('done', 'go', 'next', 'search', 'send', 'none', 'previous', 'default', 'emergency-call', 'google', 'join', 'route', 'yahoo') #

Determines how the return key should look. On Android you can also use returnKeyLabel.

Cross platform

The following values work across platforms:

  • done
  • go
  • next
  • search
  • send

Android Only

The following values work on Android only:

  • none
  • previous

iOS Only

The following values work on iOS only:

  • default
  • emergency-call
  • google
  • join
  • route
  • yahoo

secureTextEntry bool #

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

selectTextOnFocus bool #

If true, all text will automatically be selected on focus.

selection {start: number, end: number} #

The start and end of the text input's selection. Set start and end to