From 4ea0c4d2632066cdd7bc77a33c4da7ef2eabb6b9 Mon Sep 17 00:00:00 2001
From: Travis CI AppRegistry.runApplication.
AppRegistry should be required early in the require sequence to make
sure the JS execution environment is setup before other modules are
-required.
Automatically animates views to their new positions when the +next layout happens.
A common way to use this API is to call LayoutAnimation.configureNext
+before calling setState.
Schedules an animation to happen on the next layout.
@param config Specifies animation properties:
duration in millisecondscreate, config for animating in new views (see Anim type)update, config for animating views that have been updated
+(see Anim type)@param onAnimationDidEnd Called when the animation finished. +Only supported on iOS. +@param onError Called on error. Only supported on iOS.
Helper for creating a config for configureNext.
The color used for the track to the right of the button. Overrides the +
The color used for the track to the right of the button. Overrides the default blue gradient image.
Initial maximum value of the slider. Default value is 1.
The color used for the track to the left of the button. Overrides the default blue gradient image.
Initial minimum value of the slider. Default value is 0.
Callback called when the user finishes changing the value (e.g. when the slider is released).
Callback continuously called while the user is dragging the slider.
Used to style and layout the Slider. See StyleSheet.js and
diff --git a/docs/text.html b/docs/text.html
index a4697a28aab..95cf84cd8e6 100644
--- a/docs/text.html
+++ b/docs/text.html
@@ -23,7 +23,7 @@ each other on account of the literal newlines:
Used to truncate the text with an elipsis after computing the text +};
Specifies should fonts scale to respect Text Size accessibility setting on iOS.
Used to truncate the text with an elipsis after computing the text layout, including line wrapping, such that the total number of lines does not exceed this number.
Invoked on mount and layout changes with
{nativeEvent: {layout: {x, y, width, height}}}
This function is called on press.
Used to locate this view in end-to-end tests.
When true, no visual change is made when text is pressed down. By default, a gray oval highlights the text on press down.
In iOS, the way to display formatted text is by using NSAttributedString: you give the text that you want to display and annotate ranges with some specific formatting. In practice, this is very tedious. For React Native, we decided to use web paradigm for this where you can nest text to achieve the same effect.
Can tell TextInput to automatically capitalize certain characters.
If false, disables auto-correct. The default value is true.
If true, focuses the input on componentDidMount. The default value is false.
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.
Determines which keyboard to open, e.g.numeric.
The following values work across platforms: +to events and updating the value prop to keep the controlled state in sync.
If false, text is not editable. The default value is true.
Determines which keyboard to open, e.g.numeric.
The following values work across platforms: - default - numeric - email-address
If true, the text input can be multiple lines.
@@ -30,7 +30,7 @@ value prop if provided. For most uses this works great, but in some
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.
When the clear button should appear on the right side of the text view
If true, clears the text field automatically when editing begins
If false, text is not editable. The default value is true.
If true, the keyboard disables the return key when there is no text and +unwanted edits without flicker.
When the clear button should appear on the right side of the text view
If true, clears the text field automatically when editing begins
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.
Limits the maximum number of characters that can be entered. Use this instead of implementing the logic in JS to avoid flicker.
Determines how the return key should look.
If true, all text will automatically be selected on focus
See DocumentSelectionState.js, some state that is responsible for maintaining selection information for a document
Aligns text vertically within the TextInput.
The color of the textInput underline.
Views are designed to be used with StyleSheets for clarity and
-performance, although inline styles are also supported.
Overrides the text that's read by the screen reader when the user interacts +performance, although inline styles are also supported.
Indicates to accessibility services to treat UI component like a +native one. Works for Android only.
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.
Provides additional traits to screen reader. By default no traits are +children and accumulating all the Text nodes separated by space.
Indicates to accessibility services whether the user should be notified +when this view changes. Works for Android API >= 19 only. +See http://developer.android.com/reference/android/view/View.html#attr_android:accessibilityLiveRegion +for references.
Provides additional traits to screen reader. By default no traits are provided unless specified otherwise in element
When true, indicates that the view is an accessibility element. By default, all the touchable elements are accessible.
When accessible is true, the system will try to invoke this function
when the user performs accessibility tap gesture.
Invoked on mount and layout changes with
{nativeEvent: { layout: {x, y, width, height}}}.
When accessible is true, the system will invoke this function when the
@@ -37,14 +41,20 @@ for scrolling content when there are many subviews, most of which are
offscreen. For this property to be effective, it must be applied to a
view that contains many subviews that extend outside its bound. The
subviews must also have overflow: hidden, as should the containing view
-(or one of its superviews).
Whether this view should render itself (and all of its children) into a +(or one of its superviews).
Used to locate this view in end-to-end tests. NB: disables the 'layout-only +view removal' optimization for this view!
Whether this view should render itself (and all of its children) into a single hardware texture on the GPU.
On Android, this is useful for animations and interactions that only modify opacity, rotation, translation, and/or scale: in those cases, the view doesn't have to be redrawn and display lists don't need to be re-executed. The texture can just be re-used and re-composited with different parameters. The downside is that this can use up limited video memory, so this prop should be set back to false at the end of the -interaction/animation.
Used to locate this view in end-to-end tests.
Whether this view should be rendered as a bitmap before compositing.
On iOS, this is useful for animations and interactions that do not +modify this component's dimensions nor its children; for example, when +translating the position of a static view, rasterization allows the +renderer to reuse a cached bitmap of a static view and quickly composite +it during each frame.
Rasterization incurs an off-screen drawing pass and the bitmap consumes +memory. Test and measure when using this property.