UNPKG

813 BJavaScriptView Raw
1import React, {
2 PropTypes,
3 ViewPropTypes,
4 Component,
5} from 'react';
6import {
7 View,
8 Text,
9 StyleSheet,
10} from 'react-native';
11
12const styles = StyleSheet.create({
13 bdWrap: {
14 flex: 1,
15 justifyContent: 'center',
16 alignItems: 'center',
17 // height: 30,
18 },
19 bd: {
20 height: 3,
21 width: 1,
22 backgroundColor: '#DCDEE5',
23 },
24 textColor: {
25 color: '#DCDEE5',
26 },
27});
28
29class TopPoint extends Component {
30 static propTypes = {
31 label: PropTypes.number,
32 style: PropTypes.object,
33 };
34 static defaultProps = {
35 label: null,
36 style: null,
37 }
38 render() {
39 const label = this.props.label;
40 const style = this.props.style;
41 return (
42 <View style={styles.bdWrap}>
43 <Text style={style}>{label}</Text>
44 </View>
45 );
46 }
47}
48
49export default TopPoint;