Fix UIExplorer Image example on iOS

Reviewed By: javache

Differential Revision: D3138820

fb-gh-sync-id: 83bf3f6c60b80e9303b3c3a47dd5d05069623204
fbshipit-source-id: 83bf3f6c60b80e9303b3c3a47dd5d05069623204
This commit is contained in:
Nick Lockwood 2016-04-05 08:47:21 -07:00 committed by Facebook Github Bot 7
parent 40f13742b3
commit a10c1b5a30
1 changed files with 13 additions and 10 deletions

View File

@ -25,6 +25,7 @@
var React = require('react-native');
var {
Image,
Platform,
StyleSheet,
Text,
View,
@ -425,16 +426,18 @@ exports.examples = [
source={image}
/>
</View>
<View style={styles.leftMargin}>
<Text style={[styles.resizeModeText]}>
Center
</Text>
<Image
style={styles.resizeMode}
resizeMode={Image.resizeMode.center}
source={image}
/>
</View>
{ 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>
</View>
);