From a0db8a867ce7efef5eb90f65dda3d0b0bad7f296 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Tue, 11 Jul 2017 23:05:08 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/image.html | 10 +++++++--- versions.html | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/releases/next/docs/image.html b/releases/next/docs/image.html index 827b06270af..45fa05b566b 100644 --- a/releases/next/docs/image.html +++ b/releases/next/docs/image.html @@ -1,7 +1,7 @@ Image

Image #

A React component for displaying different types of images, including network images, static resources, temporary local images, and -images from local disk, such as the camera roll.

This example shows both fetching and displaying an image from local -storage as well as one from network.

import React, { Component } from 'react'; +images from local disk, such as the camera roll.

This example shows fetching and displaying an image from local storage +as well as one from network and even from data provided in the 'data:' uri scheme.

Note that for network and data images, you will need to manually specify the dimensions of your image!

import React, { Component } from 'react'; import { AppRegistry, View, Image } from 'react-native'; export default class DisplayAnImage extends Component { @@ -15,13 +15,17 @@ storage as well as one from network.

={{width: 50, height: 50}} source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}} /> + <Image + style={{width: 66, height: 58}} + source={{uri: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAYAAAA6oTAqAAAAEXRFWHRTb2Z0d2FyZQBwbmdjcnVzaEB1SfMAAABQSURBVGje7dSxCQBACARB+2/ab8BEeQNhFi6WSYzYLYudDQYGBgYGBgYGBgYGBgYGBgZmcvDqYGBgmhivGQYGBgYGBgYGBgYGBgYGBgbmQw+P/eMrC5UTVAAAAABJRU5ErkJggg=='}} + /> </View> ); } } // skip this line if using Create React Native App -AppRegistry.registerComponent('DisplayAnImage', () => DisplayAnImage);

You can also add style to an image:

import React, { Component } from 'react'; +AppRegistry.registerComponent('DisplayAnImage', () => DisplayAnImage);

You can also add style to an image:

import React, { Component } from 'react'; import { AppRegistry, View, Image, StyleSheet } from 'react-native'; const styles = StyleSheet.create({ diff --git a/versions.html b/versions.html index 9339c50dbed..fd656fd702a 100644 --- a/versions.html +++ b/versions.html @@ -1,4 +1,4 @@ -React Native Versions

React Native Versions

React Native follows a monthly release train. Every month, a new branch created off master enters the Release Candidate phase, and the previous Release Candidate branch is released and considered stable.

If you have an existing project that uses React Native, read the release notes to learn about new features and fixes. You can follow our guide to upgrade your app to the latest version.

Current version (Stable)

0.46DocumentationRelease Notes

This is the version that is configured automatically when you create a new project using react-native init.

Pre-release versions

masterDocumentation
0.47-RCDocumentationRelease Notes

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Past versions

0.45DocumentationRelease Notes
0.44DocumentationRelease Notes
0.43DocumentationRelease Notes
0.42DocumentationRelease Notes
0.41DocumentationRelease Notes
0.40DocumentationRelease Notes
0.39DocumentationRelease Notes
0.38DocumentationRelease Notes
0.37DocumentationRelease Notes
0.36DocumentationRelease Notes
0.35DocumentationRelease Notes
0.34DocumentationRelease Notes
0.33DocumentationRelease Notes
0.32DocumentationRelease Notes
0.31DocumentationRelease Notes
0.30DocumentationRelease Notes
0.29DocumentationRelease Notes
0.28DocumentationRelease Notes
0.27DocumentationRelease Notes
0.26DocumentationRelease Notes
0.25DocumentationRelease Notes
0.24DocumentationRelease Notes
0.23DocumentationRelease Notes
0.22DocumentationRelease Notes
0.21DocumentationRelease Notes
0.20DocumentationRelease Notes
0.19DocumentationRelease Notes
0.18DocumentationRelease Notes

You can find past versions of React Native on GitHub. The release notes can be useful if you would like to learn when a specific feature or fix was released.

You can also view the docs for a particular version of React Native by clicking on the Docs link next to the release in this page. You can come back to this page and switch the version of the docs you're reading at any time by clicking on the version number at the top of the page.

React Native Versions

React Native follows a monthly release train. Every month, a new branch created off master enters the Release Candidate phase, and the previous Release Candidate branch is released and considered stable.

If you have an existing project that uses React Native, read the release notes to learn about new features and fixes. You can follow our guide to upgrade your app to the latest version.

Current version (Stable)

0.46DocumentationRelease Notes

This is the version that is configured automatically when you create a new project using react-native init.

Pre-release versions

masterDocumentation
0.47-RCDocumentationRelease Notes

To see what changes are coming and provide better feedback to React Native contributors, use the latest release candidate when possible. By the time a release candidate is released, the changes it contains will have been shipped in production Facebook apps for over two weeks.

Past versions

0.45DocumentationRelease Notes
0.44DocumentationRelease Notes
0.43DocumentationRelease Notes
0.42DocumentationRelease Notes
0.41DocumentationRelease Notes
0.40DocumentationRelease Notes
0.39DocumentationRelease Notes
0.38DocumentationRelease Notes
0.37DocumentationRelease Notes
0.36DocumentationRelease Notes
0.35DocumentationRelease Notes
0.34DocumentationRelease Notes
0.33DocumentationRelease Notes
0.32DocumentationRelease Notes
0.31DocumentationRelease Notes
0.30DocumentationRelease Notes
0.29DocumentationRelease Notes
0.28DocumentationRelease Notes
0.27DocumentationRelease Notes
0.26DocumentationRelease Notes
0.25DocumentationRelease Notes
0.24DocumentationRelease Notes
0.23DocumentationRelease Notes
0.22DocumentationRelease Notes
0.21DocumentationRelease Notes
0.20DocumentationRelease Notes
0.19DocumentationRelease Notes
0.18DocumentationRelease Notes

You can find past versions of React Native on GitHub. The release notes can be useful if you would like to learn when a specific feature or fix was released.

You can also view the docs for a particular version of React Native by clicking on the Docs link next to the release in this page. You can come back to this page and switch the version of the docs you're reading at any time by clicking on the version number at the top of the page.

\ No newline at end of file