Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Commit

Permalink
update blame regex and associated tests (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcataldo authored and vjeux committed Feb 6, 2018
1 parent dcb9b19 commit 716a4ff
Show file tree
Hide file tree
Showing 8 changed files with 33,558 additions and 9,226 deletions.
48 changes: 48 additions & 0 deletions __tests__/data/17759.diff
@@ -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>
);
9,049 changes: 0 additions & 9,049 deletions __tests__/data/MapView.js.blame

This file was deleted.

15,752 changes: 15,752 additions & 0 deletions __tests__/data/WebView.ios.js.blame

Large diffs are not rendered by default.

0 comments on commit 716a4ff

Please sign in to comment.