diff --git a/css/react-native.css b/css/react-native.css index a08f351d6bd..05e541bb9d8 100644 --- a/css/react-native.css +++ b/css/react-native.css @@ -1041,6 +1041,11 @@ div[data-twttr-id] iframe { margin-top: 0; } +.compactProps .propTitle div { + font-weight: normal; + margin-left: 20px; +} + .prop { padding: 5px 10px; } diff --git a/docs/image.html b/docs/image.html index 8eb52d11b05..afb735faab7 100644 --- a/docs/image.html +++ b/docs/image.html @@ -22,7 +22,16 @@ so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).
'stretch': Scale width and height independently, This may change the aspect ratio of the src.
uri is a string representing the resource identifier for the image, which
could be an http address, a local file path, or the name of a static image
-resource (which should be wrapped in the require('./path/to/image.png') function).
A unique identifier for this element to be used in UI Automation
+resource (which should be wrapped in the require('./path/to/image.png') function).
When the image has rounded corners, specifying an overlayColor will +cause the remaining space in the corners to be filled with a solid color. +This is useful in cases which are not supported by the Android +implementation of rounded corners: + - Certain resize modes, such as 'contain' + - Animated GIFs
A typical way to use this prop is with images displayed on a solid
+background and setting the overlayColor to the same color
+as the background.
For details of how this works under the hood, see +http://frescolib.org/docs/rounded-corners-and-circles.html
iOS-Specific style to "tint" an image. +Changes the color of all the non-transparent pixels to the tintColor.
A unique identifier for this element to be used in UI Automation testing scripts.
The text that's read by the screen reader when the user interacts with the image.
When true, indicates the image is an accessibility element.
When the image is resized, the corners of the size specified
by capInsets will stay a fixed size, but the center content and borders
diff --git a/docs/scrollview.html b/docs/scrollview.html
index a1c18897de1..93df351c88b 100644
--- a/docs/scrollview.html
+++ b/docs/scrollview.html
@@ -32,7 +32,12 @@ events can be controlled using the scrollEventThrottle prop.
See RefreshControl.
Experimental: When true, offscreen child views (whose overflow value is
hidden) are removed from their native backing superview when offscreen.
This can improve scrolling performance on long lists. The default value is
-true.
When true, shows a horizontal scroll indicator.
When true, shows a vertical scroll indicator.
When true, the scroll view bounces horizontally when it reaches the end +true.
When true, shows a horizontal scroll indicator.
When true, shows a vertical scroll indicator.
(Android-only) Sets the elevation of a view, using Android's underlying +elevation API. +This adds a drop shadow to the item and affects z-order for overlapping views. +Only supported on Android 5.0+, has no effect on earlier versions.
When true, momentum events will be sent from Android +This is internal and set automatically by the framework if you have +onMomentumScrollBegin or onMomentumScrollEnd set on your ScrollView
When true, the scroll view bounces horizontally when it reaches the end
even if the content is smaller than the scroll view itself. The default
value is true when horizontal={true} and false otherwise.
When true, the scroll view bounces vertically when it reaches the end even if the content is smaller than the scroll view itself. The default @@ -64,9 +69,7 @@ The default value is zero, which means the scroll event will be sent only once each time the view is scrolled.
The amount by which the scroll view indicators are inset from the edges
of the scroll view. This should normally be set to the same value as
the contentInset. Defaults to {0, 0, 0, 0}.
When true, the scroll view scrolls to top when the status bar is tapped. -The default value is true.
When true, momentum events will be sent from Android -This is internal and set automatically by the framework if you have -onMomentumScrollBegin or onMomentumScrollEnd set on your ScrollView
When snapToInterval is set, snapToAlignment will define the relationship
+The default value is true.
When snapToInterval is set, snapToAlignment will define the relationship
of the the snapping to the scroll view.
- start (the default) will align the snap at the left (horizontal) or top (vertical)
- center will align the snap in the center
diff --git a/docs/text.html b/docs/text.html
index e0c7ac8434a..76201285122 100644
--- a/docs/text.html
+++ b/docs/text.html
@@ -25,7 +25,9 @@ each other on account of the literal newlines:
Used to truncate the text with an ellipsis 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.
Specifies should fonts scale to respect Text Size accessibility setting on iOS.
When true, no visual change is made when text is pressed down. By +does not exceed this number.
Invoked on mount and layout changes with
{nativeEvent: {layout: {x, y, width, height}}}
This function is called on press.
Specifies font weight. The values 'normal' and 'bold' are supported for +most fonts. Not all fonts have a variant for each of the numeric values, +in that case the closest one is chosen.
Specifies text alignment. The value 'justify' is only supported on iOS.
Used to locate this view in end-to-end tests.
Specifies should fonts scale to respect Text Size accessibility setting on iOS.
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.
editable={false}, or set/update maxLength to prevent
-unwanted edits without flicker.If true, the text field will blur when submitted. +unwanted edits without flicker.
Sets the number of lines for a TextInput. Use it with multiline set to +true to be able to fill the lines.
The color of the textInput underline.
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.
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.
Determines the color of the keyboard.
Sets the number of lines for a TextInput. Use it with multiline set to -true to be able to fill the lines.
Callback that is called when a key is pressed. +automatically enables it when there is text. The default value is false.
Determines the color of the keyboard.
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.
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
The color of the textInput underline.
Renders a native WebView.
Sets the JS to be injected when the webpage loads.
Invoked when load fails
Invoked when load finish
Invoked when load either succeeds or fails
Invoked on load start
Function that returns a view to show if there's an error.
Function that returns a loading indicator.
Determines whether HTML5 videos play inline or use the native full-screen +
Renders a native WebView.
Sets the JS to be injected when the webpage loads.
Invoked when load fails
Invoked when load finish
Invoked when load either succeeds or fails
Invoked on load start
Function that returns a view to show if there's an error.
Function that returns a loading indicator.
Used on Android only, controls whether DOM Storage is enabled or not
Used on Android only, JS is enabled by default for WebView on iOS
Determines whether HTML5 videos play inline or use the native full-screen
controller.
default value false
NOTE : "In order for video to play inline, not only does this
property need to be set to true, but the video element in the HTML
-document must also include the webkit-playsinline attribute."
Used on Android only, controls whether DOM Storage is enabled or not
Used on Android only, JS is enabled by default for WebView on iOS
Allows custom handling of any webview requests by a JS handler. Return true +document must also include the webkit-playsinline attribute."
Allows custom handling of any webview requests by a JS handler. Return true or false from this method to continue loading the request.
Sets whether the webpage scales to fit the view and the user can change the scale.