Commit 3f89e273 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

Header News Detail

parent 136790ec
...@@ -590,7 +590,18 @@ class Auth extends React.Component { ...@@ -590,7 +590,18 @@ class Auth extends React.Component {
}} /> }} />
{/* <Stack.Screen name="Email Confirmation" component={EmailConfirmation} /> */} {/* <Stack.Screen name="Email Confirmation" component={EmailConfirmation} /> */}
<Stack.Screen name="News Detail" component={NewsDetail} options={{ headerShown: false }} /> <Stack.Screen name="News Detail" component={NewsDetail} options={{
headerStyle: { backgroundColor: "#CFB368" },
headerBackTitleStyle: { color: 'white' },
headerTintColor: '#fff',
headerTitleAlign: 'center',
headerTitleStyle: {
fontFamily: 'Gotham-Black',
color: 'white',
fontSize: 20,
},
title: 'NEWS DETAIL'
}} />
<Stack.Screen name="CONFIRM YOUR ORDER" component={MenuConfirmation} <Stack.Screen name="CONFIRM YOUR ORDER" component={MenuConfirmation}
options={{ options={{
headerStyle: { backgroundColor: "#CFB368" }, headerStyle: { backgroundColor: "#CFB368" },
......
...@@ -43,13 +43,7 @@ export default class NewsDetail extends React.Component { ...@@ -43,13 +43,7 @@ export default class NewsDetail extends React.Component {
render() { render() {
return ( return (
<View style={styles.container(this.state.statusbar_height)}> <View style={styles.container}>
<View style={styles.header}>
<TouchableOpacity onPress={() => this.props.navigation.goBack()}>
<Image source={require('../assets/icon/back.png')} style={{width: 35, height: 35}} />
</TouchableOpacity>
<Text style={styles.headerTitle}>NEWS DETAIL</Text>
</View>
<ScrollView style={styles.body}> <ScrollView style={styles.body}>
<View style={styles.image_container(this.state.image_height)}> <View style={styles.image_container(this.state.image_height)}>
<Image style={styles.image(this.state.image_height)} source={this.state.image ? { uri: this.state.image } : null} /> <Image style={styles.image(this.state.image_height)} source={this.state.image ? { uri: this.state.image } : null} />
...@@ -67,11 +61,10 @@ export default class NewsDetail extends React.Component { ...@@ -67,11 +61,10 @@ export default class NewsDetail extends React.Component {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: (marginTop) => ({ container:{
flex: 1, flex: 1,
marginTop: marginTop,
backgroundColor: 'white', backgroundColor: 'white',
}), },
header: { header: {
height: 60, height: 60,
paddingHorizontal: 5, paddingHorizontal: 5,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment