UNPKG

live-tour-lab

Version:

Create VR tours. Built on React VR. LiveTourLab is the #1 open source framework and ecosystem for creating Live Tours. Extend with your own VR components in minutes.

39 lines (33 loc) 623 B
import React from 'react'; import { Text, View, } from 'react-vr'; export default class CardHeader extends React.Component { static defaultProps = { textColor: '#333333', fontSize: 0.3, }; constructor(props) { super(); this.state = { }; } componentDidMount() { } render() { return ( <Text style={{ fontSize: this.props.fontSize, fontWeight: '400', textAlign: 'left', color: this.props.textColor, marginLeft: 0.1, marginRight: 0.1, marginTop: 0.1, }}> {this.props.children} </Text> ); } }