This repository has been archived by the owner on Nov 28, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update blame regex and associated tests (#244)
- Loading branch information
Showing
8 changed files
with
33,558 additions
and
9,226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff --git a/Libraries/Image/Image.ios.js b/Libraries/Image/Image.ios.js | ||
index fd99b986b88..f8ae5a17211 100644 | ||
--- a/Libraries/Image/Image.ios.js | ||
+++ b/Libraries/Image/Image.ios.js | ||
@@ -241,6 +241,10 @@ const Image = createReactClass({ | ||
* | ||
* - `repeat`: Repeat the image to cover the frame of the view. The | ||
* image will keep it's size and aspect ratio. (iOS only) | ||
+ * | ||
+ * - 'center': Scale the image down so that it is completely visible, | ||
+ * if bigger than the area of the view. | ||
+ * The image will not be scaled up. | ||
*/ | ||
resizeMode: PropTypes.oneOf([ | ||
'cover', | ||
diff --git a/RNTester/js/ImageExample.js b/RNTester/js/ImageExample.js | ||
index 6e677890404..7577b5b349c 100644 | ||
--- a/RNTester/js/ImageExample.js | ||
+++ b/RNTester/js/ImageExample.js | ||
@@ -572,18 +572,16 @@ exports.examples = [ | ||
/> | ||
</View> | ||
: null } | ||
- { Platform.OS === 'android' ? | ||
- <View style={styles.leftMargin}> | ||
- <Text style={[styles.resizeModeText]}> | ||
- Center | ||
- </Text> | ||
- <Image | ||
- style={styles.resizeMode} | ||
- resizeMode={Image.resizeMode.center} | ||
- source={image} | ||
- /> | ||
- </View> | ||
- : null } | ||
+ <View style={styles.leftMargin}> | ||
+ <Text style={[styles.resizeModeText]}> | ||
+ Center | ||
+ </Text> | ||
+ <Image | ||
+ style={styles.resizeMode} | ||
+ resizeMode={Image.resizeMode.center} | ||
+ source={image} | ||
+ /> | ||
+ </View> | ||
</View> | ||
</View> | ||
); |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.