UNPKG

behart-live-tour

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.

40 lines (35 loc) 695 B
import React from 'react'; import { Text, View, } from 'react-vr'; export default class CardContent extends React.Component { static defaultProps = { textColor: '#000000', fontSize: 0.12, }; constructor(props) { super(); this.state = { }; } componentDidMount() { } render() { return ( <Text style={{ fontSize: this.props.fontSize, fontWeight: '200', textAlign: 'justify', color: this.props.textColor, marginLeft: 0.1, marginRight: 0.1, marginTop: 0, fontStyle: this.props.fontStyle, marginBottom: 0.015, }}> {this.props.children} </Text> ); } }