We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1a824d commit 27b9d86Copy full SHA for 27b9d86
src/components/header.js
@@ -1,13 +1,20 @@
1
-import React, { Component } from 'react';
2
-import { Text } from "react-native";
+import React from 'react';
+import { Text, View } from "react-native";
3
4
const Header = () => {
5
- const { textStyle } = styles;
6
- return <Text style={textStyle}> Albums </Text>;
+ const { textStyle, viewStyle } = styles;
+ return (
7
+ <View style={viewStyle}>
8
+ <Text style={textStyle}> Albums </Text>
9
+ </View>
10
+ );
11
};
12
export default Header;
13
14
const styles = {
15
+ viewStyle: {
16
+ backgroundColor: '#F8F8F8',
17
+ },
18
textStyle: {
19
fontSize: 20,
20
color: 'red'
0 commit comments