UNPKG

883 BJavaScriptView Raw
1import React, {
2 PropTypes,
3 ViewPropTypes,
4 Component,
5} from 'react';
6
7import {
8 View,
9 Text,
10 StyleSheet,
11} from 'react-native';
12import Flex from '../Flex';
13
14const styles = StyleSheet.create({
15 rectangularContainer: {
16 flexDirection: 'row',
17 justifyContent: 'space-around',
18 borderBottomWidth: 1,
19 borderColor: '#DCDEE5',
20 },
21});
22
23class ShapContainer extends Component {
24 static propTypes = {
25 style: PropTypes.object,
26 children: PropTypes.array,
27 }
28 static defaultProps = {
29 style: {},
30 children: [],
31 }
32 render() {
33 const style = {
34 borderColor: this.props.style.borderColor,
35 };
36 return (
37 <View style={{ flex: 1, height: this.props.style.height - 10 }}>
38 <View style={[styles.rectangularContainer, style]}>
39 {this.props.children}
40 </View>
41 </View>
42 );
43 }
44}
45
46export default ShapContainer;