From 41ce182eb2edf0e92e95e44cb2a5596f9509a6b1 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Tue, 19 Jul 2016 14:31:29 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/image.html | 2 +- releases/next/docs/native-modules-android.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/next/docs/image.html b/releases/next/docs/image.html index bac9b69216f..8927280ba4d 100644 --- a/releases/next/docs/image.html +++ b/releases/next/docs/image.html @@ -48,7 +48,7 @@ class DisplayAnImageWithStyle extends 'DisplayAnImageWithStyle', () => DisplayAnImageWithStyle );

Props #

onLayout PropTypes.func #

Invoked on mount and layout changes with -{nativeEvent: {layout: {x, y, width, height}}}.

onLoad PropTypes.func #

Invoked when load completes successfully.

onLoadEnd PropTypes.func #

Invoked when load either succeeds or fails.

onLoadStart PropTypes.func #

Invoked on load start.

e.g., onLoadStart={(e) => this.setState({loading: true})}

resizeMode PropTypes.oneOf(['cover', 'contain', 'stretch', 'repeat']) #

Determines how to resize the image when the frame doesn't match the raw +{nativeEvent: {layout: {x, y, width, height}}}.

onLoad PropTypes.func #

Invoked when load completes successfully.

onLoadEnd PropTypes.func #

Invoked when load either succeeds or fails.

onLoadStart PropTypes.func #

Invoked on load start.

e.g., onLoadStart={(e) => this.setState({loading: true})}

resizeMode PropTypes.oneOf(['cover', 'contain', 'stretch', 'repeat', 'center']) #

Determines how to resize the image when the frame doesn't match the raw image dimensions.

  • cover: Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).

  • contain: Scale the image uniformly (maintain the image's aspect ratio) diff --git a/releases/next/docs/native-modules-android.html b/releases/next/docs/native-modules-android.html index 956a11f4cfc..22da4bd9e27 100644 --- a/releases/next/docs/native-modules-android.html +++ b/releases/next/docs/native-modules-android.html @@ -57,7 +57,7 @@ ReadableArray - modules.add(new ToastModule(reactContext)); return modules; - }

The package needs to be provided in the getPackages method of the MainActivity.java file. This file exists under the android folder in your react-native application directory. The path to this file is: android/app/src/main/java/com/your-app-name/MainActivity.java.

protected List<ReactPackage> getPackages() { + }

The package needs to be provided in the getPackages method of the MainApplication.java file. This file exists under the android folder in your react-native application directory. The path to this file is: android/app/src/main/java/com/your-app-name/MainApplication.java.

protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage(), new AnExampleReactPackage()); // <-- Add this line with your package name.