Header component removed
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
import React from 'react';
|
||||
import { View, Text } from 'react-native';
|
||||
|
||||
const ApplicationHeader = (props) => {
|
||||
const { headerTextStyle } = styles;
|
||||
return (
|
||||
<View style={headerStyle(props.headerBackgroudColor)}>
|
||||
<Text style={headerTextStyle}>{props.headerText}</Text>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
const headerStyle = function (headerBackgroudColor) {
|
||||
return {
|
||||
backgroundColor: headerBackgroudColor,
|
||||
height: 50,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center'
|
||||
};
|
||||
};
|
||||
|
||||
const styles = {
|
||||
headerTextStyle: {
|
||||
fontSize: 20,
|
||||
color: '#fff'
|
||||
}
|
||||
};
|
||||
|
||||
export default ApplicationHeader;
|
||||
@@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
import { View } from 'react-native';
|
||||
import ApplicationHeader from './ApplicationHeader';
|
||||
import Question from './Question';
|
||||
|
||||
const Lesson = (props) => {
|
||||
|
||||
Reference in New Issue
Block a user