UNPKG

centro-ui

Version:

[![npm version](https://badge.fury.io/js/centro-ui.svg)](https://badge.fury.io/js/centro-ui)

33 lines (22 loc) 601 B
import React from 'react'; import { asset, Pano, Text, View, Plane, } from 'react-vr'; export default class CnCardHeader extends React.Component { constructor(props) { super(props) } render() { return ( <View style={{ display: 'flex', flex: 0, height: 0.3, padding: 0.02, backgroundColor: "#f7f7f9"}}> <Text style={{fontSize: 0.15, flex: 1, textAlign: 'left', textAlignVertical: 'center', color: "#000" }}> {this.props.children} </Text> </View> ); } };