diff --git a/docs/activityindicatorios.html b/docs/activityindicatorios.html index ea0fae33de9..47a2285ef67 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).
@flow
{
- "methods": [
- {
- "line": 17,
- "source": "startAnimation: function(\n node: any,\n duration: number,\n delay: number,\n easing: (string | EasingFunction),\n properties: {[key: string]: any}\n ): number {\n var nodeHandle = +node.getNodeHandle();\n var easingSample = AnimationUtils.evaluateEasingFunction(duration, easing);\n var tag: number = RCTAnimationManager.startAnimation(nodeHandle, AnimationUtils.allocateTag(), duration, delay, easingSample, properties);\n return tag;\n }",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": "any",
- "name": "node"
- },
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"number\",\"length\":1}",
- "name": "duration"
- },
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"number\",\"length\":1}",
- "name": "delay"
- },
- {
- "typehint": "(string | EasingFunction)",
- "name": "easing"
- },
- {
- "typehint": "{[key: string]: any}",
- "name": "properties"
- }
- ],
- "tparams": null,
- "returntypehint": "{\"type\":\"simple\",\"value\":\"number\",\"length\":1}",
- "name": "startAnimation"
- },
- {
- "line": 30,
- "source": "stopAnimation: function(tag: number) {\n RCTAnimationManager.stopAnimation(tag);\n }",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"number\",\"length\":1}",
- "name": "tag"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "stopAnimation"
- }
- ],
- "properties": [
- [
- [
- "static"
- ],
- "",
- "Mixin",
- "require('AnimationMixin')",
- "",
- 15
- ]
- ],
- "superClass": null,
- "type": "api",
- "line": 14,
- "name": "Animation",
- "docblock": "/**\n *\n * @flow\n */\n",
- "requires": [
- {
- "name": "NativeModules"
- },
- {
- "name": "AnimationUtils"
- },
- {
- "name": "AnimationMixin"
- }
- ]
-}{
- "methods": [
- {
- "line": 18,
- "source": "setApplicationIconBadgeNumber: function(number) {\n RKAppState.setApplicationIconBadgeNumber(number);\n }",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": null,
- "name": "number"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "setApplicationIconBadgeNumber"
- },
- {
- "line": 22,
- "source": "getApplicationIconBadgeNumber: function(callback) {\n RKAppState.getApplicationIconBadgeNumber(callback);\n }",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": null,
- "name": "callback"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "getApplicationIconBadgeNumber"
- }
- ],
- "properties": [],
- "superClass": null,
- "type": "api",
- "line": 16,
- "name": "AppState",
- "docblock": "/**\n *\n */\n",
- "requires": [
- {
- "name": "NativeModulesDeprecated"
- },
- {
- "name": "RCTDeviceEventEmitter"
- },
- {
- "name": "Subscribable"
- },
- {
- "name": "keyMirror"
- }
- ]
-}{
- "methods": [
- {
- "line": 20,
- "source": "static addEventListener(type, handler) {\n _appStateHandlers[handler] = RCTDeviceEventEmitter.addListener(\n DEVICE_APPSTATE_EVENT,\n (appStateData) => {\n handler(appStateData.app_state);\n }\n );\n }",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": null,
- "name": "type"
- },
- {
- "typehint": null,
- "name": "handler"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "addEventListener"
- },
- {
- "line": 29,
- "source": "static removeEventListener(type, handler) {\n if (!_appStateHandlers[handler]) {\n return;\n }\n _appStateHandlers[handler].remove();\n _appStateHandlers[handler] = null;\n }",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": null,
- "name": "type"
- },
- {
- "typehint": null,
- "name": "handler"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "removeEventListener"
- }
- ],
- "type": "api",
- "line": 18,
- "name": "AppStateIOS",
- "docblock": "/**\n *\n */\n",
- "requires": [
- {
- "name": "NativeModules"
- },
- {
- "name": "RCTDeviceEventEmitter"
- },
- {
- "name": "logError"
- }
- ]
-}Saves the image with tag tag to the camera roll.
@param {string} tag - Can be any of the three kinds of tags we accept: +
Saves the image with tag tag to the camera roll.
@param {string} tag - Can be any of the three kinds of tags we accept: 1. URL 2. assets-library tag 3. tag returned from storing an image in memory
Invokes callback with photo identifier objects from the local camera
roll of the device matching shape defined by getPhotosReturnChecker.
@param {object} params - See getPhotosParamChecker.
@param {function} callback - Invoked with arg of shape defined by
getPhotosReturnChecker on success.
-@param {function} errorCallback - Invoked with error message on error.
{
- "methods": [
- {
- "line": 96,
- "source": "static saveImageWithTag(tag, successCallback, errorCallback) {\n invariant(\n typeof tag === 'string',\n 'CameraRoll.saveImageWithTag tag must be a valid string.'\n );\n RKCameraRollManager.saveImageWithTag(\n tag,\n (imageTag) => {\n successCallback && successCallback(imageTag);\n },\n (errorMessage) => {\n errorCallback && errorCallback(errorMessage);\n });\n }",
- "docblock": "/**\n * Saves the image with tag `tag` to the camera roll.\n *\n * @param {string} tag - Can be any of the three kinds of tags we accept:\n * 1. URL\n * 2. assets-library tag\n * 3. tag returned from storing an image in memory\n */\n",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"string\",\"length\":1}",
- "name": "tag"
- },
- {
- "typehint": null,
- "name": "successCallback"
- },
- {
- "typehint": null,
- "name": "errorCallback"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "saveImageWithTag"
- },
- {
- "line": 120,
- "source": "static getPhotos(params, callback, errorCallback) {\n var metaCallback = callback;\n if (__DEV__) {\n getPhotosParamChecker({params}, 'params', 'CameraRoll.getPhotos');\n invariant(\n typeof callback === 'function',\n 'CameraRoll.getPhotos callback must be a valid function.'\n );\n invariant(\n typeof errorCallback === 'function',\n 'CameraRoll.getPhotos errorCallback must be a valid function.'\n );\n }\n if (__DEV__) {\n metaCallback = (response) => {\n getPhotosReturnChecker(\n {response},\n 'response',\n 'CameraRoll.getPhotos callback'\n );\n callback(response);\n };\n }\n RKCameraRollManager.getPhotos(params, metaCallback, errorCallback);\n }",
- "docblock": "/**\n * Invokes `callback` with photo identifier objects from the local camera\n * roll of the device matching shape defined by `getPhotosReturnChecker`.\n *\n * @param {object} params - See `getPhotosParamChecker`.\n * @param {function} callback - Invoked with arg of shape defined by\n * `getPhotosReturnChecker` on success.\n * @param {function} errorCallback - Invoked with error message on error.\n */\n",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"object\",\"length\":1}",
- "name": "params"
- },
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"function\",\"length\":1}",
- "name": "callback"
- },
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"function\",\"length\":1}",
- "name": "errorCallback"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "getPhotos"
- }
- ],
- "type": "api",
- "line": 87,
- "name": "CameraRoll",
- "docblock": "/**\n *\n */\n",
- "requires": [
- {
- "name": "ReactPropTypes"
- },
- {
- "name": "NativeModules"
- },
- {
- "name": "createStrictShapeTypeChecker"
- },
- {
- "name": "deepFreezeAndThrowOnMutationInDev"
- },
- {
- "name": "invariant"
- }
- ]
-}Use DatePickerIOS to render a date/time picker (selector) on iOS. This is
+a controlled component, so you must hook in to the 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.
Valid modes on iOS are: 'date', 'time', 'datetime'.
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 seconds.
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.
In the following example, the text will trunca to show only the first 17 characters plus '...' with a See More button to expand the text to its full length.
The styles that will be applied to the See More button. Default +},
The styles that will be applied to the See More button. Default is bold.
The caption that will be appended at the end, by default it is
'See More'.
Text to be displayed. It will be truncated if the character length
is greater than the truncLength property.
The styles that will be applied to the text (both truncated and diff --git a/docs/image.html b/docs/image.html index d44fae15b96..2ade56e1395 100644 --- a/docs/image.html +++ b/docs/image.html @@ -13,7 +13,7 @@ images from local disk, such as the camera roll.
Example usage:
accessibilityLabel - Custom string to display for accessibility.
accessible - Whether this element should be revealed as an accessible +},
accessibilityLabel - Custom string to display for accessibility.
accessible - Whether this element should be revealed as an accessible element.
capInsets - When the image is resized, the corners of the size specified by capInsets will stay a fixed size, but the center content and borders of the image will be stretched. This is useful for creating resizable diff --git a/docs/layoutanimation.html b/docs/layoutanimation.html index 883b34ba8bd..1046388a6e9 100644 --- a/docs/layoutanimation.html +++ b/docs/layoutanimation.html @@ -1,106 +1,4 @@ -
{
- "methods": [
- {
- "line": 48,
- "source": "configureNext(config, onAnimationDidEnd, onError) {\n configChecker({config}, 'config', 'LayoutAnimation.configureNext');\n RKUIManager.configureNextLayoutAnimation(config, onAnimationDidEnd, onError);\n }",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": null,
- "name": "config"
- },
- {
- "typehint": null,
- "name": "onAnimationDidEnd"
- },
- {
- "typehint": null,
- "name": "onError"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "configureNext"
- },
- {
- "line": 52,
- "source": "create(duration, type, creationProp) {\n return {\n duration,\n create: {\n type,\n property: creationProp,\n },\n update: {\n type,\n },\n };\n }",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": null,
- "name": "duration"
- },
- {
- "typehint": null,
- "name": "type"
- },
- {
- "typehint": null,
- "name": "creationProp"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "create"
- }
- ],
- "properties": [
- [
- [
- "static"
- ],
- "",
- "Types",
- "keyMirror({\n spring: true,\n linear: true,\n easeInEaseOut: true,\n easeIn: true,\n easeOut: true,\n})",
- "",
- 64
- ],
- [
- [
- "static"
- ],
- "",
- "Properties",
- "keyMirror({\n opacity: true,\n scaleXY: true,\n})",
- "",
- 65
- ],
- [
- [
- "static"
- ],
- "",
- "configChecker",
- "createStrictShapeTypeChecker({\n duration: PropTypes.number.isRequired,\n create: animChecker,\n update: animChecker,\n delete: animChecker,\n})",
- "",
- 66
- ]
- ],
- "superClass": null,
- "type": "api",
- "line": 47,
- "name": "LayoutAnimation",
- "docblock": "/**\n *\n */\n",
- "requires": [
- {
- "name": "ReactPropTypes"
- },
- {
- "name": "NativeModules"
- },
- {
- "name": "createStrictShapeTypeChecker"
- },
- {
- "name": "keyMirror"
- }
- ]
-}Insets for the map's legal label, originally at bottom left of the map. +
Insets for the map's legal label, originally at bottom left of the map.
See EdgeInsetsPropType.js for more information.
Maximum size of area that can be displayed.
Minimum size of area that can be displayed.
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
diff --git a/docs/navigatorios.html b/docs/navigatorios.html
index f1307319087..dd8f649412a 100644
--- a/docs/navigatorios.html
+++ b/docs/navigatorios.html
@@ -33,7 +33,7 @@ transitions back to it
resetTo(route) - Replaces the top it
initialRoute={...}
/>
),
-});NavigatorIOS uses "route" objects to identify child views, their props, +});
NavigatorIOS uses "route" objects to identify child views, their props, and navigation bar configuration. "push" and all the other navigation operations expect routes to be like this:
The default wrapper style for components in the navigator. A common use case is to set the backgroundColor for every page
The color used for buttons in the navigation bar
Component that wraps platform ScrollView while providing integration with touch locking "responder" system.
Doesn't yet support other contained responders from blocking this scroll -view from becoming the responder.
When true, the scroll view bounces horizontally when it reaches the end +view from becoming the responder.
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 diff --git a/docs/slider.html b/docs/slider.html index 518a4915a56..c2c31b5e990 100644 --- a/docs/slider.html +++ b/docs/slider.html @@ -1,4 +1,4 @@ -
Callback called when the user finishes changing the value (e.g. when +
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
ViewStylePropTypes.js for more info.
Initial value of the slider. The value should be between 0 and 1. Default value is 0.
This is not a controlled component, e.g. if you don't update diff --git a/docs/statusbarios.html b/docs/statusbarios.html index 441fd5f2518..2b890dc7626 100644 --- a/docs/statusbarios.html +++ b/docs/statusbarios.html @@ -1,79 +1,4 @@ -
@flow
{
- "methods": [
- {
- "line": 24,
- "source": "setStyle(style: number, animated: boolean) {\n animated = animated || false;\n RKStatusBarManager.setStyle(style, animated);\n }",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"number\",\"length\":1}",
- "name": "style"
- },
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"boolean\",\"length\":1}",
- "name": "animated"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "setStyle"
- },
- {
- "line": 29,
- "source": "setHidden(hidden: boolean, animation: number) {\n animation = animation || StatusBarIOS.Animation.none;\n RKStatusBarManager.setHidden(hidden, animation);\n }",
- "modifiers": [
- "static"
- ],
- "params": [
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"boolean\",\"length\":1}",
- "name": "hidden"
- },
- {
- "typehint": "{\"type\":\"simple\",\"value\":\"number\",\"length\":1}",
- "name": "animation"
- }
- ],
- "tparams": null,
- "returntypehint": null,
- "name": "setHidden"
- }
- ],
- "properties": [
- [
- [
- "static"
- ],
- "",
- "Style",
- "{\n default: RKStatusBarManager.Style.default,\n lightContent: RKStatusBarManager.Style.lightContent\n }",
- "",
- 13
- ],
- [
- [
- "static"
- ],
- "",
- "Animation",
- "{\n none: RKStatusBarManager.Animation.none,\n fade: RKStatusBarManager.Animation.fade,\n slide: RKStatusBarManager.Animation.slide,\n }",
- "",
- 18
- ]
- ],
- "superClass": null,
- "type": "api",
- "line": 11,
- "name": "StatusBarIOS",
- "docblock": "/**\n *\n * @flow\n */\n",
- "requires": [
- {
- "name": "NativeModules"
- }
- ]
-}