Invoked on mount and layout changes with
-{nativeEvent: {layout: {x, y, width, height}}}.
Invoked when load completes successfully.
Invoked when load either succeeds or fails.
Invoked on load start.
e.g., onLoadStart={(e) => this.setState({loading: true})}
Determines how to resize the image when the frame doesn't match the raw
+{nativeEvent: {layout: {x, y, width, height}}}.
Invoked when load completes successfully.
Invoked when load either succeeds or fails.
Invoked on load start.
e.g., onLoadStart={(e) => this.setState({loading: true})}
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.
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.