-
Notifications
You must be signed in to change notification settings - Fork 55
/
index.ios.js
21 lines (18 loc) · 1 KB
/
index.ios.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'use strict';
import React, { Component } from 'react';
import { AppRegistry, StyleSheet, View } from 'react-native';
import ResponsiveImage from 'react-native-responsive-image';
class App extends Component {
render() {
return (
<View style={{flex: 1, justifyContent: 'center',}}>
<View style={{flexDirection: 'row',}}>
<ResponsiveImage source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}} initWidth="138" initHeight="138" defaultSource={require('./placeholder.png')}/>
<ResponsiveImage source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}} initWidth="138" initHeight="138" defaultSource={require('./placeholder.png')}/>
<ResponsiveImage source={{uri: 'https://facebook.github.io/react/img/logo_og.png'}} initWidth="138" initHeight="138" defaultSource={require('./placeholder.png')}/>
</View>
</View>
);
}
}
AppRegistry.registerComponent('ResponsiveImageExample', () => App);