1import React, { Component } from 'react';
2import {
3 AppRegistry, Image
4} from 'react-native';
5
6export default class Myproject extends Component {
7 render() {
8
9 let Image_Http_URL ={ uri: 'https://reactnativecode.com/wp-content/uploads/2017/05/react_thumb_install.png'};
10
11 return (
12 <Image source={Image_Http_URL} style = {{height: 200, resizeMode : 'stretch', margin: 5 }} />
13 );
14 }
15}
16
17AppRegistry.registerComponent('Myproject', () => Myproject);
1<Image
2 source={require("relative_path_to_image")}
3 style={{ width: 100, height: 100 }}
4/>