From d5be3d8ec7359b91bdbd5aada5b0f1fa3c419db0 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Wed, 2 Mar 2016 15:35:17 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/native-components-android.html | 2 +- releases/next/docs/textinput.html | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/releases/next/docs/native-components-android.html b/releases/next/docs/native-components-android.html index 50fcd431941..daa79fda5e4 100644 --- a/releases/next/docs/native-components-android.html +++ b/releases/next/docs/native-components-android.html @@ -23,7 +23,7 @@ public class ReactImageManager extends ReactProp(name = ViewProps.RESIZE_MODE) public void setResizeMode(ReactImageView view, @Nullable String resizeMode) { view.setScaleType(ImageResizeMode.toScaleType(resizeMode)); - }

4. Register the ViewManager #

The final Java step is to register the ViewManager to the application, this happens in a similar way to Native Modules, via the applications package member function createViewManagers.

@Override + }

4. Register the ViewManager #

The final Java step is to register the ViewManager to the application, this happens in a similar way to Native Modules, via the applications package member function createViewManagers.

@Override public List<ViewManager> createViewManagers( ReactApplicationContext reactContext) { return Arrays.<ViewManager>asList( diff --git a/releases/next/docs/textinput.html b/releases/next/docs/textinput.html index 8cf35196d3e..5e574cdce11 100644 --- a/releases/next/docs/textinput.html +++ b/releases/next/docs/textinput.html @@ -9,7 +9,11 @@ example:

<TextInput onChangeText={(text) => this.setState({text})} value={this.state.text} />

Note that some props are only available with multiline={true/false}:

Props #

autoCapitalize enum('none', 'sentences', 'words', 'characters') #

Can tell TextInput to automatically capitalize certain characters.

  • characters: all characters,
  • words: first letter of each word
  • sentences: first letter of each sentence (default)
  • none: don't auto capitalize anything

autoCorrect bool #

If false, disables auto-correct. The default value is true.

autoFocus bool #

If true, focuses the input on componentDidMount. -The default value is false.

defaultValue string #

Provides an initial value that will change when the user starts typing. +The default value is false.

blurOnSubmit bool #

If true, the text field will blur when submitted. +The default value is true for single-line fields and false for +multiline fields. Note that for multiline fields, setting 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 string #

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

editable bool #

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

keyboardType enum('default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search') #

Determines which keyboard to open, e.g.numeric.

The following values work across platforms: - default @@ -26,11 +30,7 @@ cases this may cause flickering - one common cause is preventing edits by keeping value the same. In addition to simply setting the same value, either set editable={false}, or set/update maxLength to prevent unwanted edits without flicker.

androidnumberOfLines number #

Sets the number of lines for a TextInput. Use it with multiline set to -true to be able to fill the lines.

androidunderlineColorAndroid string #

The color of the textInput underline.

iosblurOnSubmit bool #

If true, the text field will blur when submitted. -The default value is true for single-line fields and false for -multiline fields. Note that for multiline fields, setting blurOnSubmit -to true means that pressing return will blur the field and trigger the -onSubmitEditing event instead of inserting a newline into the field.

iosclearButtonMode enum('never', 'while-editing', 'unless-editing', 'always') #

When the clear button should appear on the right side of the text view

iosclearTextOnFocus bool #

If true, clears the text field automatically when editing begins

iosenablesReturnKeyAutomatically bool #

If true, the keyboard disables the return key when there is no text and +true to be able to fill the lines.

androidunderlineColorAndroid string #

The color of the textInput underline.

iosclearButtonMode enum('never', 'while-editing', 'unless-editing', 'always') #

When the clear button should appear on the right side of the text view

iosclearTextOnFocus bool #

If true, clears the text field automatically when editing begins

iosenablesReturnKeyAutomatically bool #

If true, the keyboard disables the return key when there is no text and automatically enables it when there is text. The default value is false.

ioskeyboardAppearance enum('default', 'light', 'dark') #

Determines the color of the keyboard.

iosonKeyPress function #

Callback that is called when a key is pressed. Pressed key value is passed as an argument to the callback handler. Fires before onChange callbacks.

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

Determines how the return key should look.

iosselectTextOnFocus bool #

If true, all text will automatically be selected on focus

iosselectionState DocumentSelectionState #

See DocumentSelectionState.js, some state that is responsible for