diff --git a/releases/next/docs/activityindicator.html b/releases/next/docs/activityindicator.html index 980634d2b7d..d62c7bbd57a 100644 --- a/releases/next/docs/activityindicator.html +++ b/releases/next/docs/activityindicator.html @@ -1,5 +1,8 @@ -
ActivityIndicator # | Edit on GitHub |
Displays a circular loading indicator.
Whether to show the indicator (true, the default) or hide it (false).
Size of the indicator. Small has a height of 20, large has a height of 36. -Other sizes can be obtained using a scale transform.
Whether the indicator should hide when not animating (true by default).
Examples # | Edit on GitHub |
ActivityIndicator # | Edit on GitHub |
Displays a circular loading indicator.
Whether to show the indicator (true, the default) or hide it (false).
Size of the indicator. Small has a height of 20, large has a height of 36. +Other sizes can be obtained using a scale transform.
Whether the indicator should hide when not animating (true by default).
Examples # | Edit on GitHub |
onDateChange callback
and update the date prop in order for the component to update, otherwise
the user's change will be reverted immediately to reflect props.date as the
-source of truth.The currently selected date.
Maximum date.
Restricts the range of possible date/time values.
Minimum date.
Restricts the range of possible date/time values.
The interval at which minutes can be selected.
The date picker mode.
Date change handler.
This is called when the user changes the date or time in the UI. +source of truth.
The currently selected date.
Maximum date.
Restricts the range of possible date/time values.
Minimum date.
Restricts the range of possible date/time values.
The interval at which minutes can be selected.
The date picker mode.
Date change handler.
This is called when the user changes the date or time in the UI. The first and only argument is a Date object representing the new -date and time.
Timezone offset in minutes.
By default, the date picker will use the device's timezone. With this +date and time.
Timezone offset in minutes.
By default, the date picker will use the device's timezone. With this parameter, it is possible to force a certain timezone offset. For instance, to show times in Pacific Standard Time, pass -7 * 60.
Examples # | Edit on GitHub |
drawerWidth prop.Example:
Specifies the lock mode of the drawer. The drawer can be locked in 3 states: +);
Specifies the lock mode of the drawer. The drawer can be locked in 3 states:
- unlocked (default), meaning that the drawer will respond (open/close) to touch gestures.
- locked-closed, meaning that the drawer will stay closed and not respond to gestures.
- locked-open, meaning that the drawer will stay opened and not respond to gestures.
-The drawer may still be opened and closed programmatically (openDrawer/closeDrawer).
Specifies the side of the screen from which the drawer will slide in.
Specifies the width of the drawer, more precisely the width of the view that be pulled in -from the edge of the window.
Determines whether the keyboard gets dismissed in response to a drag.
+The drawer may still be opened and closed programmatically (openDrawer/closeDrawer).
Specifies the side of the screen from which the drawer will slide in.
Specifies the width of the drawer, more precisely the width of the view that be pulled in +from the edge of the window.
Determines whether the keyboard gets dismissed in response to a drag. - 'none' (the default), drags do not dismiss the keyboard. - - 'on-drag', the keyboard is dismissed when a drag begins.
Function called whenever the navigation view has been closed.
Function called whenever the navigation view has been opened.
Function called whenever there is an interaction with the navigation view.
Function called when the drawer state has changed. The drawer can be in 3 states: + - 'on-drag', the keyboard is dismissed when a drag begins.
Function called whenever the navigation view has been closed.
Function called whenever the navigation view has been opened.
Function called whenever there is an interaction with the navigation view.
Function called when the drawer state has changed. The drawer can be in 3 states: - idle, meaning there is no interaction with the navigation view happening at the time - dragging, meaning there is currently an interaction with the navigation view - settling, meaning that there was an interaction with the navigation view, and the -navigation view is now finishing its closing or opening animation
The navigation view that will be rendered to the side of the screen and can be pulled in.
Make the drawer take the entire screen and draw the background of the +navigation view is now finishing its closing or opening animation
The navigation view that will be rendered to the side of the screen and can be pulled in.
Layout Props # | Edit on GitHub |
alignItems aligns children in the cross direction.
+
Layout Props # | Edit on GitHub |
alignItems aligns children in the cross direction.
For example, if children are flowing vertically, alignItems
controls how they align horizontally.
It works like align-items in CSS, except the default value
is stretch instead of flex-start. See
https://css-tricks.com/almanac/properties/a/align-items/
- for more detail.
alignSelf controls how a child aligns in the cross direction,
+ for more detail.
alignSelf controls how a child aligns in the cross direction,
overriding the alignItems of the parent. It works like align-self
in CSS. See
https://css-tricks.com/almanac/properties/a/align-self/
- for more detail.
borderBottomWidth works like border-bottom-width in CSS.
+ for more detail.
borderBottomWidth works like border-bottom-width in CSS.
See http://www.w3schools.com/cssref/pr_border-bottom_width.asp
-for more details.
borderLeftWidth works like border-left-width in CSS.
+for more details.
borderLeftWidth works like border-left-width in CSS.
See http://www.w3schools.com/cssref/pr_border-bottom_width.asp
-for more details.
borderRightWidth works like border-right-width in CSS.
+for more details.
borderRightWidth works like border-right-width in CSS.
See http://www.w3schools.com/cssref/pr_border-right_width.asp
-for more details.
borderTopWidth works like border-top-width in CSS.
+for more details.
borderTopWidth works like border-top-width in CSS.
See http://www.w3schools.com/cssref/pr_border-top_width.asp
-for more details.
borderWidth works like border-width in CSS.
+for more details.
borderWidth works like border-width in CSS.
See http://www.w3schools.com/cssref/pr_border-width.asp
-for more details.
bottom is the number of logical pixels to offset the bottom edge of
+for more details.
bottom is the number of logical pixels to offset the bottom edge of
this component.
It works similarly to bottom in CSS, but in React Native you must
use logical pixel units, rather than percents, ems, or any of that.
See https://developer.mozilla.org/en-US/docs/Web/CSS/bottom
- for more details of how top affects layout.
In React Native flex does not work the same way that it does in CSS.
+ for more details of how top affects layout.
In React Native flex does not work the same way that it does in CSS.
flex is a number rather than a string, and it works
according to the css-layout library
at https://github.com/facebook/css-layout .
When flex is a positive number, it makes the component flexible
@@ -30,59 +41,76 @@ for more details.
flexDirection controls which directions children of a container go.
+ the component will shrink to its minWidth and minHeight.
flexDirection controls which directions children of a container go.
row goes left to right, column goes top to bottom, and you may
be able to guess what the other two do. It works like flex-direction
in CSS, except the default is column. See
https://css-tricks.com/almanac/properties/f/flex-direction/
- for more detail.
flexWrap controls whether children can wrap around after they
+ for more detail.
flexWrap controls whether children can wrap around after they
hit the end of a flex container.
It works like flex-wrap in CSS. See
https://css-tricks.com/almanac/properties/f/flex-wrap/
- for more detail.
height sets the height of this component.
It works similarly to height in CSS, but in React Native you
+ for more detail.
height sets the height of this component.
It works similarly to height in CSS, but in React Native you
must use logical pixel units, rather than percents, ems, or any of that.
- See http://www.w3schools.com/cssref/pr_dim_width.asp for more details.
justifyContent aligns children in the main direction.
+ See http://www.w3schools.com/cssref/pr_dim_width.asp for more details.
justifyContent aligns children in the main direction.
For example, if children are flowing vertically, justifyContent
controls how they align vertically.
It works like justify-content in CSS. See
https://css-tricks.com/almanac/properties/j/justify-content/
- for more detail.
left is the number of logical pixels to offset the left edge of
+ for more detail.
left is the number of logical pixels to offset the left edge of
this component.
It works similarly to left in CSS, but in React Native you must
use logical pixel units, rather than percents, ems, or any of that.
See https://developer.mozilla.org/en-US/docs/Web/CSS/left
- for more details of how left affects layout.
Setting margin has the same effect as setting each of
- marginTop, marginLeft, marginBottom, and marginRight.
marginBottom works like margin-bottom in CSS.
+ for more details of how left affects layout.
Setting margin has the same effect as setting each of
+ marginTop, marginLeft, marginBottom, and marginRight.
marginBottom works like margin-bottom in CSS.
See http://www.w3schools.com/cssref/pr_margin-bottom.asp
- for more details.
Setting marginHorizontal has the same effect as setting
- both marginLeft and marginRight.
marginLeft works like margin-left in CSS.
+ for more details.
Setting marginHorizontal has the same effect as setting
+ both marginLeft and marginRight.
marginLeft works like margin-left in CSS.
See http://www.w3schools.com/cssref/pr_margin-left.asp
- for more details.
marginRight works like margin-right in CSS.
+ for more details.
marginRight works like margin-right in CSS.
See http://www.w3schools.com/cssref/pr_margin-right.asp
- for more details.
marginTop works like margin-top in CSS.
+ for more details.
marginTop works like margin-top in CSS.
See http://www.w3schools.com/cssref/pr_margin-top.asp
- for more details.
Setting marginVertical has the same effect as setting both
- marginTop and marginBottom.
maxHeight is the maximum height for this component, in logical pixels.
It works similarly to max-height in CSS, but in React Native you
+ for more details.
Setting marginVertical has the same effect as setting both
+ marginTop and marginBottom.
maxHeight is the maximum height for this component, in logical pixels.
It works similarly to max-height in CSS, but in React Native you
must use logical pixel units, rather than percents, ems, or any of that.
See http://www.w3schools.com/cssref/pr_dim_max-height.asp - for more details.
maxWidth is the maximum width for this component, in logical pixels.
It works similarly to max-width in CSS, but in React Native you
+ for more details.
maxWidth is the maximum width for this component, in logical pixels.
It works similarly to max-width in CSS, but in React Native you
must use logical pixel units, rather than percents, ems, or any of that.
See http://www.w3schools.com/cssref/pr_dim_max-width.asp - for more details.
minHeight is the minimum height for this component, in logical pixels.
It works similarly to min-height in CSS, but in React Native you
+ for more details.
minHeight is the minimum height for this component, in logical pixels.
It works similarly to min-height in CSS, but in React Native you
must use logical pixel units, rather than percents, ems, or any of that.
See http://www.w3schools.com/cssref/pr_dim_min-height.asp - for more details.
minWidth is the minimum width for this component, in logical pixels.
It works similarly to min-width in CSS, but in React Native you
+ for more details.
minWidth is the minimum width for this component, in logical pixels.
It works similarly to min-width in CSS, but in React Native you
must use logical pixel units, rather than percents, ems, or any of that.
See http://www.w3schools.com/cssref/pr_dim_min-width.asp - for more details.
padding works like padding in CSS.
+ for more details.
padding works like padding in CSS.
It's like setting each of paddingTop, paddingBottom,
paddingLeft, and paddingRight to the same thing.
See http://www.w3schools.com/css/css_padding.asp
- for more details.
paddingBottom works like padding-bottom in CSS.
+ for more details.
paddingBottom works like padding-bottom in CSS.
See http://www.w3schools.com/cssref/pr_padding-bottom.asp
-for more details.
Setting paddingHorizontal is like setting both of
- paddingLeft and paddingRight.
paddingLeft works like padding-left in CSS.
+for more details.
Setting paddingHorizontal is like setting both of
+ paddingLeft and paddingRight.
paddingLeft works like padding-left in CSS.
See http://www.w3schools.com/cssref/pr_padding-left.asp
-for more details.
paddingRight works like padding-right in CSS.
+for more details.
paddingRight works like padding-right in CSS.
See http://www.w3schools.com/cssref/pr_padding-right.asp
-for more details.
paddingTop works like padding-top in CSS.
+for more details.
paddingTop works like padding-top in CSS.
See http://www.w3schools.com/cssref/pr_padding-top.asp
-for more details.
Setting paddingVertical is like setting both of
- paddingTop and paddingBottom.
position in React Native is similar to regular CSS, but
+for more details.
Setting paddingVertical is like setting both of
+ paddingTop and paddingBottom.
position in React Native is similar to regular CSS, but
everything is set to relative by default, so absolute
positioning is always just relative to the parent.
If you want to position a child using specific numbers of logical
pixels relative to its parent, set the child to have absolute
@@ -90,15 +118,15 @@ for more details.
right is the number of logical pixels to offset the right edge of
+ and CSS.
right is the number of logical pixels to offset the right edge of
this component.
It works similarly to right in CSS, but in React Native you must
use logical pixel units, rather than percents, ems, or any of that.
See https://developer.mozilla.org/en-US/docs/Web/CSS/right
- for more details of how right affects layout.
top is the number of logical pixels to offset the top edge of
+ for more details of how right affects layout.
top is the number of logical pixels to offset the top edge of
this component.
It works similarly to top in CSS, but in React Native you must
use logical pixel units, rather than percents, ems, or any of that.
See https://developer.mozilla.org/en-US/docs/Web/CSS/top
- for more details of how top affects layout.
width sets the width of this component.
It works similarly to width in CSS, but in React Native you
+ for more details of how top affects layout.
width sets the width of this component.
It works similarly to width in CSS, but in React Native you
must use logical pixel units, rather than percents, ems, or any of that.
- See http://www.w3schools.com/cssref/pr_dim_width.asp for more details.
zIndex controls which components display on top of others.
+ See http://www.w3schools.com/cssref/pr_dim_width.asp for more details.
Map annotations with title and subtitle.zIndex controls which components display on top of others.
Normally, you don't use zIndex. Components render according to
their order in the document tree, so later components draw over
earlier ones. zIndex may be useful if you have animations or custom
diff --git a/releases/next/docs/mapview.html b/releases/next/docs/mapview.html
index a22561c7a27..28aa662a8cf 100644
--- a/releases/next/docs/mapview.html
+++ b/releases/next/docs/mapview.html
@@ -28,14 +28,14 @@ class MapMyRide extends #
If true the map will follow the user's location whenever it changes.
Note that this has no effect unless showsUserLocation is enabled.
Default value is true.
Insets for the map's legal label, originally at bottom left of the map.
The map type to be displayed.
standard: Standard road map (default).satellite: Satellite view.hybrid: Satellite view with roads and points of interest overlaid.Maximum size of the area that can be displayed.
Minimum size of the area that can be displayed.
Deprecated. Use annotation onFocus and onBlur instead.
Callback that is called continuously when the user is dragging the map.
Callback that is called once, when the user is done moving the map.
Map overlays
When this property is set to true and a valid camera is associated
-with the map, the camera’s pitch angle is used to tilt the plane
-of the map.
When this property is set to false, the camera’s pitch
+with the map, the camera's pitch angle is used to tilt the plane
+of the map.
When this property is set to false, the camera's pitch
angle is ignored and the map is always displayed as if the user
is looking straight down onto it.
The region to be displayed by the map.
The region is defined by the center coordinates and the span of coordinates to display.
When this property is set to true and a valid camera is associated with
-the map, the camera’s heading angle is used to rotate the plane of the
+the map, the camera's heading angle is used to rotate the plane of the
map around its center point.
When this property is set to false, the
-camera’s heading angle is ignored and the map is always oriented so
+camera's heading angle is ignored and the map is always oriented so
that true north is situated at the top of the map view
If false the user won't be able to change the map region being displayed.
Default value is true.
If false, compass won't be displayed on the map.
Default value is true.
If false points of interest won't be displayed on the map.
diff --git a/releases/next/docs/modal.html b/releases/next/docs/modal.html
index c1be0ba370e..ef4501cbf55 100644
--- a/releases/next/docs/modal.html
+++ b/releases/next/docs/modal.html
@@ -45,7 +45,7 @@ class ModalExample extends /View>
);
}
-}
DeprecatedUse the animationType prop instead.
The animationType prop controls how the modal animates.
slide slides in from the bottomfade fades into viewnone appears without an animationThe onRequestClose prop allows passing a function that will be called once the modal has been dismissed.
On the Android platform, this is a required function.
The onShow prop allows passing a function that will be called once the modal has been shown.
The transparent prop determines whether your modal will fill the entire view. Setting this to true will render the modal over a transparent background.
The visible prop determines whether your modal is visible.
Examples # | Edit on GitHub |
DeprecatedUse the animationType prop instead.
The animationType prop controls how the modal animates.
slide slides in from the bottomfade fades into viewnone appears without an animationThe onRequestClose prop allows passing a function that will be called once the modal has been dismissed.
On the Android platform, this is a required function.
The onShow prop allows passing a function that will be called once the modal has been shown.
The transparent prop determines whether your modal will fill the entire view. Setting this to true will render the modal over a transparent background.
The visible prop determines whether your modal is visible.
Examples # | Edit on GitHub |
Example:
/> ); },If the progress bar will show indeterminate progress. Note that this -can only be false if styleAttr is Horizontal.
The progress value (between 0 and 1).
Style of the ProgressBar. One of:
Used to locate this view in end-to-end tests.
Examples # | Edit on GitHub |
The progress value (between 0 and 1).
Style of the ProgressBar. One of:
Used to locate this view in end-to-end tests.
Examples # | Edit on GitHub |
ProgressViewIOS # | Edit on GitHub |
Use ProgressViewIOS to render a UIProgressView on iOS.
The progress value (between 0 and 1).
A stretchable image to display as the progress bar.
The tint color of the progress bar itself.
The progress bar style.
A stretchable image to display behind the progress bar.
The tint color of the progress bar track.
Examples # | Edit on GitHub |
ProgressViewIOS # | Edit on GitHub |
Use ProgressViewIOS to render a UIProgressView on iOS.
The progress value (between 0 and 1).
A stretchable image to display as the progress bar.
The tint color of the progress bar itself.
The progress bar style.
A stretchable image to display behind the progress bar.
The tint color of the progress bar track.
Examples # | Edit on GitHub |
When false, the content does not scroll. -The default value is 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 +The default value is 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.
Sometimes a scrollview takes up more space than its content fills. When this is diff --git a/releases/next/docs/segmentedcontrolios.html b/releases/next/docs/segmentedcontrolios.html index 5c85155c163..17838b5aaf6 100644 --- a/releases/next/docs/segmentedcontrolios.html +++ b/releases/next/docs/segmentedcontrolios.html @@ -7,11 +7,11 @@ selects a value and changes the index, as shown in the example below.
If false the user won't be able to interact with the control. -Default value is true.
If true, then selecting a segment won't persist visually.
-The onValueChange callback will still work as expected.
Callback that is called when the user taps a segment; -passes the event as an argument
Callback that is called when the user taps a segment; -passes the segment's value as an argument
The index in props.values of the segment to be (pre)selected.
Accent color of the control.
The labels for the control's segment buttons, in order.
Examples # | Edit on GitHub |
If false the user won't be able to interact with the control. +Default value is true.
If true, then selecting a segment won't persist visually.
+The onValueChange callback will still work as expected.
Callback that is called when the user taps a segment; +passes the event as an argument
Callback that is called when the user taps a segment; +passes the segment's value as an argument
The index in props.values of the segment to be (pre)selected.
Accent color of the control.
The labels for the control's segment buttons, in order.
Examples # | Edit on GitHub |
Shadow Props # | Edit on GitHub |
Shadow Props # | Edit on GitHub |
Sets the drop shadow offset
Sets the drop shadow opacity (multiplied by the color's alpha component)
Sets the drop shadow blur radius
Slider # | Edit on GitHub |
A component used to select a single value from a range of values.
If true the user won't be able to move the slider. -Default value is false.
Initial maximum value of the slider. Default value is 1.
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.
Step value of the slider. The value should be +
Slider # | Edit on GitHub |
A component used to select a single value from a range of values.
If true the user won't be able to move the slider. +Default value is false.
Initial maximum value of the slider. Default value is 1.
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.
Step value of the slider. The value should be between 0 and (maximumValue - minimumValue). Default value is 0.
Used to style and layout the Slider. See StyleSheet.js and
-ViewStylePropTypes.js for more info.
Used to locate this view in UI automation tests.
Initial value of the slider. The value should be between minimumValue
+ViewStylePropTypes.js for more info.
Used to locate this view in UI automation tests.
Initial value of the slider. The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.
This is not a controlled component, you don't need to update the value during dragging.
Assigns a maximum track image. Only static images are supported. The -leftmost pixel of the image will be stretched to fill the track.
The color used for the track to the right of the button. Overrides the +leftmost pixel of the image will be stretched to fill the track.
The color used for the track to the right of the button. Overrides the default blue gradient image.
Assigns a minimum track image. Only static images are supported. The -rightmost pixel of the image will be stretched to fill the track.
The color used for the track to the left of the button. Overrides the +rightmost pixel of the image will be stretched to fill the track.
The color used for the track to the left of the button. Overrides the default blue gradient image.
Sets an image for the thumb. Only static images are supported.
Assigns a single image for the track. Only static images are supported. The center pixel of the image will be stretched to fill the track.
Examples # | Edit on GitHub |
SliderIOS # | Edit on GitHub |
Note: SliderIOS is deprecated and will be removed in the future. Use the cross-platform -Slider as a drop-in replacement with the same API.
An iOS-specific component used to select a single value from a range of values.
If true the user won't be able to move the slider. +Slider as a drop-in replacement with the same API.
An iOS-specific component used to select a single value from a range of values.
If true the user won't be able to move the slider. Default value is false.
Assigns a maximum track image. Only static images are supported. The -leftmost pixel of the image will be stretched to fill the track.
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.
Assigns a minimum track image. Only static images are supported. The -rightmost pixel of the image will be stretched to fill the track.
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.
Step value of the slider. The value should be +leftmost pixel of the image will be stretched to fill the track.
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.
Assigns a minimum track image. Only static images are supported. The +rightmost pixel of the image will be stretched to fill the track.
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.
Step value of the slider. The value should be between 0 and (maximumValue - minimumValue). Default value is 0.
Used to style and layout the Slider. See StyleSheet.js and
ViewStylePropTypes.js for more info.
Sets an image for the thumb. It only supports static images.
Assigns a single image for the track. Only static images are supported. -The center pixel of the image will be stretched to fill the track.
Initial value of the slider. The value should be between minimumValue +The center pixel of the image will be stretched to fill the track.
Initial value of the slider. The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.
This is not a controlled component, e.g. if you don't update the value, the component won't be reset to its initial value.
Examples # | Edit on GitHub |
tail - The line is displayed so that the beginning fits in the container and the
missing text at the end of the line is indicated by an ellipsis glyph. e.g., "abcd..."clip - Lines are not drawn past the edge of the text container.The default is tail.
numberOfLines must be set in conjunction with this prop.
clipis working only for iOS
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.
This prop is commonly used with lineBreakMode.
Invoked on mount and layout changes with
{nativeEvent: {layout: {x, y, width, height}}}
This function is called on long press.
e.g., `onLongPress={this.increaseSize}>``
This function is called on press.
e.g., `onPress={() => console.log('1st')}``
Specifies font weight. The values 'normal' and 'bold' are supported for +does not exceed this number.
This prop is commonly used with lineBreakMode.
Invoked on mount and layout changes with
{nativeEvent: {layout: {x, y, width, height}}}
This function is called on long press.
e.g., `onLongPress={this.increaseSize}>``
This function is called on press.
e.g., `onPress={() => console.log('1st')}``
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 and
-fallbacks to left on Android.
Used to locate this view in end-to-end tests.
Lets the user select text, to use the native copy and paste functionality.
Specifies whether fonts should scale to respect Text Size accessibility setting on iOS. The +in that case the closest one is chosen.
Specifies text alignment. The value 'justify' is only supported on iOS and
+fallbacks to left on Android.
Used to locate this view in end-to-end tests.
Lets the user select text, to use the native copy and paste functionality.
Specifies whether fonts should scale to respect Text Size accessibility setting on iOS. The
default is true.
When true, no visual change is made when text is pressed down. By
default, a gray oval highlights the text on press down.
Description # | Edit on GitHub |
Both iOS and Android allow you to display formatted text by annotating ranges of a string with specific formatting like bold or colored text (NSAttributedString on iOS, SpannableString on Android). 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.
underlineColorAndroid to transparent.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.If false, disables auto-correct. The default value is true.
If true, focuses the input on componentDidMount.
-The default value is false.
If true, the text field will blur when submitted.
+underlineColorAndroid to transparent.
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.If false, disables auto-correct. The default value is true.
If true, focuses the input on componentDidMount.
+The default value is false.
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.
Provides an initial value that will change when the user starts typing.
+onSubmitEditing event instead of inserting a newline into the field.
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.
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:
defaultnumericemail-addressphone-padLimits the maximum number of characters that can be entered. Use this -instead of implementing the logic in JS to avoid flicker.
If true, the text input can be multiple lines.
-The default value is false.
Callback that is called when the text input is blurred.
Callback that is called when the text input's text changes.
Callback that is called when the text input's text changes. -Changed text is passed as an argument to the callback handler.
Callback that is called when text input ends.
Callback that is called when the text input is focused.
Invoked on mount and layout changes with {x, y, width, height}.
Callback that is called when the text input selection is changed.
Callback that is called when the text input's submit button is pressed.
-Invalid if multiline={true} is specified.
The string that will be rendered before text input has been entered.
Determines how the return key should look. On Android you can also use
-returnKeyLabel.
Cross platform
The following values work across platforms:
donegonextsearchsendAndroid Only
The following values work on Android only:
nonepreviousiOS Only
The following values work on iOS only:
defaultemergency-callgooglejoinrouteyahooIf true, the text input obscures the text entered so that sensitive text
-like passwords stay secure. The default value is false.
If true, all text will automatically be selected on focus.
The value to show for the text input. TextInput is a controlled
+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:
defaultnumericemail-addressphone-padLimits the maximum number of characters that can be entered. Use this +instead of implementing the logic in JS to avoid flicker.
If true, the text input can be multiple lines.
+The default value is false.
Callback that is called when the text input is blurred.
Callback that is called when the text input's text changes.
Callback that is called when the text input's text changes. +Changed text is passed as an argument to the callback handler.
Callback that is called when text input ends.
Callback that is called when the text input is focused.
Invoked on mount and layout changes with {x, y, width, height}.
Callback that is called when the text input selection is changed.
Callback that is called when the text input's submit button is pressed.
+Invalid if multiline={true} is specified.
The string that will be rendered before text input has been entered.
Determines how the return key should look. On Android you can also use
+returnKeyLabel.
Cross platform
The following values work across platforms:
donegonextsearchsendAndroid Only
The following values work on Android only:
nonepreviousiOS Only
The following values work on iOS only:
defaultemergency-callgooglejoinrouteyahooIf true, the text input obscures the text entered so that sensitive text
+like passwords stay secure. The default value is false.
If true, all text will automatically be selected on focus.
The value to show for the text input. TextInput is a controlled
component, which means the native value will be forced to match this
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.
If defined, the provided image resource will be rendered on the left.
Padding between the inline image, if any, and the text input itself.
Sets the number of lines for a TextInput. Use it with multiline set to
-true to be able to fill the lines.
Sets the return key to the label. Use it instead of returnKeyType.
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.
Callback that is called when a key is pressed. +unwanted edits without flicker.
If defined, the provided image resource will be rendered on the left.
Padding between the inline image, if any, and the text input itself.
Sets the number of lines for a TextInput. Use it with multiline set to
+true to be able to fill the lines.
Sets the return key to the label. Use it instead of returnKeyType.
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.
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.
An instance of DocumentSelectionState, this is some state that is responsible for
+Fires before onChange callbacks.
An instance of DocumentSelectionState, this is some state that is responsible for
maintaining selection information for a document.
Some functionality that can be performed with this instance is:
blur()focus()update()You can reference
DocumentSelectionStateinvendor/document/selection/DocumentSelectionState.js
IOS # | Edit on GitHub |
Sets possible actions on the toolbar as part of the action menu. These are displayed as icons +}
Sets possible actions on the toolbar as part of the action menu. These are displayed as icons or text on the right side of the widget. If they don't fit they are placed in an 'overflow' menu.
This property takes an array of objects, where each object has the following keys:
title: required, the title of this actionicon: the icon for this action, e.g. require('./some_icon.png')show: when to show this action as an icon or hide it in the overflow menu: always,
-ifRoom or nevershowWithText: boolean, whether to show text alongside the icon or notSets the content inset for the toolbar ending edge.
The content inset affects the valid area for Toolbar content other than
+ifRoom or never
showWithText: boolean, whether to show text alongside the icon or notSets the content inset for the toolbar ending edge.
The content inset affects the valid area for Toolbar content other than the navigation button and menu. Insets define the minimum margin for these components and can be used to effectively align Toolbar content -along well-known gridlines.
Sets the content inset for the toolbar starting edge.
The content inset affects the valid area for Toolbar content other than +along well-known gridlines.
Sets the content inset for the toolbar starting edge.
The content inset affects the valid area for Toolbar content other than the navigation button and menu. Insets define the minimum margin for these components and can be used to effectively align Toolbar content -along well-known gridlines.
Sets the toolbar logo.
Sets the navigation icon.
Callback that is called when an action is selected. The only argument that is passed to the -callback is the position of the action in the actions array.
Callback called when the icon is selected.
Sets the overflow icon.
Used to set the toolbar direction to RTL. +along well-known gridlines.
Sets the toolbar logo.
Sets the navigation icon.
Callback that is called when an action is selected. The only argument that is passed to the +callback is the position of the action in the actions array.
Callback called when the icon is selected.
Sets the overflow icon.
Used to set the toolbar direction to RTL. In addition to this property you need to add
android:supportsRtl="true"
to your application AndroidManifest.xml and then call
setLayoutDirection(LayoutDirection.RTL) in your MainActivity
-onCreate method.
Sets the toolbar subtitle.
Used to locate this view in end-to-end tests.
Sets the toolbar title.
Examples # | Edit on GitHub |
onCreate method.Sets the toolbar subtitle.
Used to locate this view in end-to-end tests.
Sets the toolbar title.
Examples # | Edit on GitHub |
Transforms # | Edit on GitHub |
Transforms # | Edit on GitHub |