PlainText.js 1.22 KB
'use strict';

import React from 'react';
import ReactNative from 'react-native';


const {
    Component,
} = React;


const {
    View,
    Text,
    Platform,
    StyleSheet,
} = ReactNative;


export default class PlainText extends Component {

    static propTypes = {
        topText: React.PropTypes.string,
        bottomText: React.PropTypes.string,
        containerStyle: View.propTypes.style,
        topTextStyle: View.propTypes.style,
        bottomTextStyle: View.propTypes.style,
    };

	render() {

        return (
            <View style={[styles.container, this.props.containerStyle]}>
                <Text style={[styles.topText, this.props.topTextStyle]}>{this.props.topText}</Text>
                <Text style={[styles.bottomText, this.props.bottomTextStyle]}>{this.props.bottomText}</Text>
            </View>
        );
    }
}

let styles = StyleSheet.create({
    container: {

    },
    topText: {
        fontSize: 14,
        color: '#444444',
        textAlign: 'center',
        lineHeight: 20,
        marginTop: 15,
        marginBottom: 10,
    },
    bottomText: {
        fontSize: 17,
        color: '#D0021B',
        fontWeight: 'bold',
        textAlign: 'center',
        marginBottom: 15,
    },

});