Skip to content
Permalink
Browse files

Add image asset to example-app

  • Loading branch information...
thymikee committed Apr 18, 2018
1 parent 248dfab commit eb73e64ecb1862528e231be65fdfa23099d5e4ab
@@ -5,7 +5,8 @@
*/

import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View, Button } from 'react-native';
import { Platform, StyleSheet, Text, View, Button, Image } from 'react-native';
import image from './assets/haul_logo.png';

const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
@@ -29,6 +30,7 @@ export default class App extends Component<{}, State> {
render() {
return (
<View style={styles.container}>
<Image source={image} style={styles.logo} />
<Text style={styles.welcome}>Welcome to React Native with Haul!!</Text>
<Text style={styles.instructions}>To get started, edit App.js</Text>
<Text style={styles.instructions}>{instructions}</Text>
@@ -63,4 +65,8 @@ const styles = StyleSheet.create({
color: '#333333',
marginBottom: 5,
},
logo: {
width: 300,
height: 100,
},
});
@@ -4,9 +4,7 @@
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"haul": "../../bin/cli.js",
"haul-local": "haul"
"test": "jest"
},
"dependencies": {
"react": "16.2.0",
@@ -15,7 +13,7 @@
"devDependencies": {
"babel-jest": "22.2.2",
"babel-preset-react-native": "4.0.0",
"haul": "1.0.0-beta.13",
"haul": "../..",
"jest": "22.2.2",
"react-test-renderer": "16.2.0"
},
Oops, something went wrong.

0 comments on commit eb73e64

Please sign in to comment.
You can’t perform that action at this time.