Skip to content

Commit

Permalink
lesson-18
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshaunjp committed Oct 25, 2019
1 parent 68a2585 commit 990cc74
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 30 deletions.
2 changes: 1 addition & 1 deletion gamezone/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ export default function App() {
)
}

}
}
11 changes: 3 additions & 8 deletions gamezone/screens/about.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { globalStyles } from './styles/global';

export default function About() {
return (
<View style={styles.container}>
<View style={globalStyles.container}>
<Text>About Screen</Text>
</View>
);
}

const styles = StyleSheet.create({
container: {
padding: 24,
},
});
}
17 changes: 4 additions & 13 deletions gamezone/screens/home.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { globalStyles } from '../styles/global';

export default function Home() {
return (
<View style={styles.container}>
<Text style={styles.titleText}>Home Screen</Text>
<View style={globalStyles.container}>
<Text style={globalStyles.titleText}>Home Screen</Text>
</View>
);
}

const styles = StyleSheet.create({
container: {
padding: 24,
},
titleText: {
fontFamily: 'nunito-bold',
fontSize: 18,
}
});
}
11 changes: 3 additions & 8 deletions gamezone/screens/reviewDetails.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { globalStyles } from '../styles/global';

export default function ReviewDetails() {
return (
<View style={styles.container}>
<View style={globalStyles.container}>
<Text>ReviewDetails Screen</Text>
</View>
);
}

const styles = StyleSheet.create({
container: {
padding: 24,
},
});
}
17 changes: 17 additions & 0 deletions gamezone/styles/global.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { StyleSheet } from 'react-native';

export const globalStyles = StyleSheet.create({
titleText: {
fontSize: 18,
fontWeight: 'bold',
color: '#333',
},
paragraph: {
marginVertical: 8,
lineHeight: 20,
},
container: {
flex: 1,
padding: 20,
},
});

0 comments on commit 990cc74

Please sign in to comment.