Skip to content

Commit

Permalink
Fix UIExplorer Image example on iOS
Browse files Browse the repository at this point in the history
Reviewed By: javache

Differential Revision: D3138820

fb-gh-sync-id: 83bf3f6c60b80e9303b3c3a47dd5d05069623204
fbshipit-source-id: 83bf3f6c60b80e9303b3c3a47dd5d05069623204
  • Loading branch information
nicklockwood authored and Facebook Github Bot 7 committed Apr 5, 2016
1 parent 40f1374 commit a10c1b5
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions Examples/UIExplorer/ImageExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
var React = require('react-native');
var {
Image,
Platform,
StyleSheet,
Text,
View,
Expand Down Expand Up @@ -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>
);
Expand Down

0 comments on commit a10c1b5

Please # to comment.