import React from 'react';
import { View, Text, TextInput, StyleSheet, Button } from 'react-native';

export default class MenuConfirmation extends React.Component {
    submit() {
        console.log('hai');
    }

    render() {
        return (
            <View style={styles.container}>
                <View style={styles.header}>
                    <Text style={{ textAlign: 'center', margin: 20, fontSize: 25, alignSelf: 'center' }}>Menu Confirmation</Text>
                </View>
                <View style={styles.body}>
                    <View style={styles.images}>

                    </View>
                    <View style={styles.content}>
                        <Text style={{ margin: 20, textAlign: 'justify' }}>
                            Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
                            Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
                            Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
                            Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                        </Text>
                        <Text style={{ textAlign: 'center', fontWeight: 'bold', fontSize: 20 }}>RP.50000</Text>
                        <View style={{ margin: 20 }}>
                            <Button title="Tambah" />
                        </View>
                    </View>
                </View>
            </View>
        )
    }
}

const styles = StyleSheet.create({

    container: {
        flex: 1,
        backgroundColor: 'white',
    },
    header: {

        flex: 0.5,
    },
    images: {
        margin: 10,
        flex: 2,
        backgroundColor: 'green'
    },
    content: {
        flex: 2,
    },
    body: {
        flex: 3,
    },

})