diff --git a/docs/image.html b/docs/image.html index 67f08f73972..f354a68bc1c 100644 --- a/docs/image.html +++ b/docs/image.html @@ -21,7 +21,7 @@ rounded buttons, shadows, and other resizable assets. More info on network.
Determines how to resize the image when the frame doesn't match the raw image dimensions.
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 required('image!name') function).
A unique identifier for this element to be used in UI Automation
+resource (which should be wrapped in the required('image!name') function).
A unique identifier for this element to be used in UI Automation testing scripts.
Displaying images is a fascinating subject; React Native uses some cool tricks to make it a better experience.
If you don't give a size to an image, the browser is going to render a 0x0 element, download the image, and then render the image based with the correct size. The big issue with this behavior is that your UI is going to jump all around as images load, this makes for a very bad user experience.
In React Native, this behavior is intentionally not implemented. It is more work for the developer to know the dimensions (or just aspect ratio) of the image in advance, but we believe that it leads to a better user experience.
A common feature request from developers familiar with the web is background-image. To handle this use case, simply create a normal <Image> component and add whatever children to it you would like to layer on top of it.
Navigation context objects contain the following route. All scenes after it will be unmounted
popToTop() - 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
Provide a single "route" to start on. A route is an arbitrary object -that the navigator will use to identify each scene before rendering. -Either initialRoute or initialRouteStack is required.
Provide a set of routes to initially mount the scenes for. Required if no -initialRoute is provided
Optionally provide a navigation bar that persists across scene +configuration 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
Will be called with the new route of each scene after the transition is complete or after the initial mounting
Will be called with (ref, indexInStack) when the scene ref changes
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
The current scale of the scroll view content. The default value is 1.0.
horizontal={true}.The current scale of the scroll view content. The default value is 1.0.
Used to locate this view in end-to-end tests.
Used to locate this view in end-to-end tests.