Skip to content

Commit a3e145a

Browse files
committed
Append TheCodingMachine Logo into App and Readme
1 parent b49532c commit a3e145a

File tree

6 files changed

+20
-3
lines changed

6 files changed

+20
-3
lines changed

App/Containers/Example/ExampleScreen.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import React from 'react'
2-
import { Platform, Text, View, Button, ActivityIndicator } from 'react-native'
2+
import { Platform, Text, View, Button, ActivityIndicator, Image } from 'react-native'
33
import { connect } from 'react-redux'
44
import { PropTypes } from 'prop-types'
55
import ExampleActions from 'App/Stores/Example/Actions'
66
import { liveInEurope } from 'App/Stores/Example/Selectors'
77
import Style from './ExampleScreenStyle'
8+
import { Images } from 'App/Theme'
89

910
/**
1011
* This is an example of a container component.
@@ -30,7 +31,9 @@ class ExampleScreen extends React.Component {
3031
<ActivityIndicator size="large" color="#0000ff" />
3132
) : (
3233
<View>
33-
<Text style={Style.title}>TheCodingMachine boilerplate</Text>
34+
<View style={Style.logoContainer}>
35+
<Image style={Style.logo} source={Images.logo} resizeMode={'contain'} />
36+
</View>
3437
<Text style={Style.text}>To get started, edit App.js</Text>
3538
<Text style={Style.instructions}>{instructions}</Text>
3639
{this.props.userErrorMessage ? (

App/Containers/Example/ExampleScreenStyle.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,13 @@ export default StyleSheet.create({
4141
marginBottom: 5,
4242
color: 'red',
4343
},
44+
logoContainer: {
45+
width: '100%',
46+
height: 300,
47+
marginBottom: 25,
48+
},
49+
logo: {
50+
width: '100%',
51+
height: '100%',
52+
},
4453
})

App/Images/TOM-Legend.png

2.7 MB
Loading

App/Images/TOM.png

2.22 MB
Loading

App/Theme/Images.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
*/
44

55
export default {
6-
// logo: require('../Images/logo.png'),
6+
logo: require('App/Images/TOM.png'),
77
}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<div align="center">
2+
<img src="App/Images/TOM-Legend.png" alt="Logo" width="100%">
3+
</div>
4+
5+
16
# TheCodingMachine React Native boilerplate
27

38
This project is a [React Native](https://facebook.github.io/react-native/) boilerplate that can be used to kickstart a mobile application.

0 commit comments

Comments
 (0)