diff --git a/css/react-native.css b/css/react-native.css index 902d2a4a47d..cee9a1307c4 100644 --- a/css/react-native.css +++ b/css/react-native.css @@ -967,6 +967,15 @@ div[data-twttr-id] iframe { font-size: 13px; } +.platform { + background-color: hsl(198, 100%, 87%); + border-radius: 5px; + margin-right: 5px; + padding: 0 5px; + font-size: 13px; + font-weight: normal; +} + .edit-github { font-size: 15px; font-weight: normal; diff --git a/docs/activityindicatorios.html b/docs/activityindicatorios.html index c98e05230e4..f791f1d75c7 100644 --- a/docs/activityindicatorios.html +++ b/docs/activityindicatorios.html @@ -1,4 +1,4 @@ -
Whether to show the indicator (true, the default) or hide it (false).
The foreground color of the spinner (default is gray).
Whether the indicator should hide when not animating (true by default).
Invoked on mount and layout changes with
{nativeEvent: { layout: {x, y, width, height}}}.
Size of the indicator. Small has a height of 20, large has a height of 36.
Whether to show the indicator (true, the default) or hide it (false).
The foreground color of the spinner (default is gray).
Whether the indicator should hide when not animating (true by default).
Size of the indicator. Small has a height of 20, large has a height of 36.
Invoked on mount and layout changes with
{nativeEvent: { layout: {x, y, width, height}}}.
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.
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.
Maximum date.
Restricts the range of possible date/time values.
Minimum date.
Restricts the range of possible date/time values.
The date picker mode.
The interval at which minutes can be selected.
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.
Map annotations with title/subtitle.
Insets for the map's legal label, originally at bottom left of the map.
-See EdgeInsetsPropType.js for more information.
The map type to be displayed.
Maximum size of area that can be displayed.
Minimum size of area that can be displayed.
Callback that is called once, when the user is clicked on a annotation.
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.
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
-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 region to be displayed by the map.
The region is defined by the center coordinates and the span of +coordinates to display.
Used to style and layout the MapView. See StyleSheet.js and
+ViewStylePropTypes.js for more info.
If false the user won't be able to pinch/zoom the map.
+Default value is true.
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
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
-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 true the app will ask for the user's location and focus on it.
+that true north is situated at the top of the map view
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
+angle is ignored and the map is always displayed as if the user
+is looking straight down onto it.
If false the user won't be able to change the map region being displayed.
+Default value is true.
The map type to be displayed.
If true the app will ask for the user's location and focus on it.
Default value is false.
NOTE: You need to add NSLocationWhenInUseUsageDescription key in Info.plist to enable geolocation, otherwise it is going -to fail silently!
Used to style and layout the MapView. See StyleSheet.js and
-ViewStylePropTypes.js for more info.
If false the user won't be able to pinch/zoom the map.
-Default value is true.
Map annotations with title/subtitle.
Maximum size of area that can be displayed.
Minimum size of area that can be displayed.
Insets for the map's legal label, originally at bottom left of the map.
+See EdgeInsetsPropType.js for more information.
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.
Callback that is called once, when the user is clicked on a annotation.
getCurrentRoutes() - return
route. All scenes after it will be unmountedpopToTop() - Pop to the first scene in the stack, unmounting every
other sceneOptional function that allows configuration about scene animations and gestures. Will be invoked with the route and should return a scene -configuration object
Specify a route to start on. A route is an object that the navigator +configuration object
Required function which renders the scene for a given route. Will be +invoked with the route and the navigator object
Specify a route to start on. A route is an object that the navigator
will use to identify each scene to render. initialRoute must be
a route in the initialRouteStack if both props are provided. The
initialRoute will default to the last item in the initialRouteStack.
Provide a set of routes to initially mount. Required if no initialRoute
is provided. Otherwise, it will default to an array containing only the
-initialRoute
Optionally provide a navigation bar that persists across scene -transitions
Optionally provide the navigator object from a parent Navigator
@deprecated
+initialRoute
@deprecated
+Use navigationContext.addListener('willfocus', callback) instead.
Will emit the target route upon mounting and before each nav transition
@deprecated
Use navigationContext.addListener('didfocus', callback) instead.
Will be called with the new route of each scene after the transition is -complete or after the initial mounting
@deprecated
-Use navigationContext.addListener('willfocus', callback) instead.
Will emit the target route upon mounting and before each nav transition
Required function which renders the scene for a given route. Will be -invoked with the route and the navigator object
Styles to apply to the container of each scene
Use SegmentedControlIOS to render a UISegmentedControl iOS.
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.
Use SegmentedControlIOS to render a UISegmentedControl iOS.
The labels for the control's segment buttons, in order.
The index in props.values of the segment to be pre-selected
Callback that is called when the user taps a segment; +passes the segment's value as an argument
Callback that is called when the user taps a segment; +passes the event as an argument
If false the user won't be able to interact with the control. +Default value is true.
Accent color of the control.
If true, then selecting a segment won't persist visually.
+The onValueChange callback will still work as expected.
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
+
Used to style and layout the Slider. See StyleSheet.js and
ViewStylePropTypes.js for more info.
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 inital value.
Initial minimum value of the slider. Default value is 0.
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.
The color used for the track to the right of the button. Overrides the +default blue gradient image.
Callback continuously called while the user is dragging the slider.
Callback called when the user finishes changing the value (e.g. when +the slider is released).
onValueChange callback
and update the value prop in order for the component to update, otherwise
the user's change will be reverted immediately to reflect props.value as the
-source of truth.If true the user won't be able to toggle the switch. -Default value is false.
Background color when the switch is turned on.
Callback that is called when the user toggles the switch.
Background color for the switch round button.
Background color when the switch is turned off.
The value of the switch, if true the switch will be turned on. -Default value is false.
The value of the switch, if true the switch will be turned on. +Default value is false.
If true the user won't be able to toggle the switch. +Default value is false.
Callback that is called when the user toggles the switch.
Background color when the switch is turned on.
Background color for the switch round button.
Background color when the switch is turned off.
Little red bubble that sits at the top right of the icon.
A custom icon for the tab. It is ignored when a system icon is defined.
Callback when this tab is being selected, you should change the state of your -component to set selected={true}.
It specifies whether the children are visible or not. If you see a -blank content, you probably forgot to add a selected one.
A custom icon when the tab is selected. It is ignored when a system -icon is defined. If left empty, the icon will be tinted in blue.
React style object.
Items comes with a few predefined system icons. Note that if you are +
Little red bubble that sits at the top right of the icon.
Items comes with a few predefined system icons. Note that if you are using them, the title and selectedIcon will be overriden with the -system ones.
Text that appears under the icon. It is ignored when a system icon +system ones.
A custom icon for the tab. It is ignored when a system icon is defined.
A custom icon when the tab is selected. It is ignored when a system +icon is defined. If left empty, the icon will be tinted in blue.
Callback when this tab is being selected, you should change the state of your +component to set selected={true}.
It specifies whether the children are visible or not. If you see a +blank content, you probably forgot to add a selected one.
React style object.
Text that appears under the icon. It is ignored when a system icon is defined.
Background color of the tab bar
Color of the currently selected tab icon
A Boolean value that indicates whether the tab bar is translucent
Color of the currently selected tab icon
Background color of the tab bar
A Boolean value that indicates whether the tab bar is translucent
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.
When true, no visual change is made when text is pressed down. By -default, a gray oval highlights the text on press down. -@platform ios
Used to locate this view in end-to-end tests.
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.
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.
var notMultiline = { onSubmitEditing: true, - };
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.
When the clear button should appear on the right side of the text view -@platform ios
If true, clears the text field automatically when editing begins -@platform ios
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.
If false, text is not editable. The default value is true. -@platform ios
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. -@platform ios
Determines which keyboard to open, e.g.numeric.
The following values work across platforms: + };
Callback that is called when text input ends.
Can tell TextInput to automatically capitalize certain characters.
If true, focuses the input on componentDidMount. +The default value is false.
Set the position of the cursor from where editing will begin. +@platorm android
Used to locate this view in end-to-end tests
Styles
Determines which keyboard to open, e.g.numeric.
The following values work across platforms: - default - numeric -- email-address
Limits the maximum number of characters that can be entered. Use this -instead of implementing the logic in JS to avoid flicker. -@platform ios
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's submit button is pressed.
The string that will be rendered before text input has been entered
The text color of the placeholder string
Determines how the return key should look. -@platform ios
If 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 -@platform ios
See DocumentSelectionState.js, some state that is responsible for -maintaining selection information for a document -@platform ios
Styles
Used to locate this view in end-to-end tests
Set the position of the cursor from where editing will begin. -@platorm android
Aligns text vertically within the TextInput. -@platform android
The color of the textInput underline. -@platform android
The value to show for the text input. TextInput is a controlled +- email-address
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.
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 true, the text input obscures the text entered so that sensitive text +like passwords stay secure. The default value is false.
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 is focused
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.
If false, disables auto-correct. The default value is true.
Callback that is called when the text input's submit button is pressed.
Invoked on mount and layout changes with {x, y, width, height}.
The string that will be rendered before text input has been entered
The text color of the placeholder string
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.
See DocumentSelectionState.js, some state that is responsible for +maintaining selection information for a document
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.
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, all text will automatically be selected on focus
If false, text is not editable. The default value is true.
Aligns text vertically within the TextInput.
The color of the textInput underline.
Determines what the opacity of the wrapped view should be when touch is -active.
Called immediately after the underlay is hidden
Called immediately after the underlay is shown
The color of the underlay that will show through when the touch is -active.
Do not use unless you have a very good reason. All the elements that respond to press should have a visual feedback when touched. This is one of the primary reason a "web" app doesn't feel "native".
Called when the touch is released, but not if cancelled (e.g. by a scroll -that steals the responder lock).
Delay in ms, from onPressIn, before onLongPress is called.
Delay in ms, from the start of the touch, before onPressIn is called.
Delay in ms, from the release of the touch, before onPressOut is called.
Sets the JS to be injected when the webpage loads.
Used for android only, JS is enabled by default for WebView on iOS
Used for iOS only, sets whether the webpage scales to fit the view and the -user can change the scale
Used for android only, JS is enabled by default for WebView on iOS
Sets the JS to be injected when the webpage loads.
Used for iOS only, sets whether the webpage scales to fit the view and the +user can change the scale