import React from 'react';
import Types from '../lib/Types';
import Module from '../lib/Module';
import { StyleSheet, Text, View  } from 'react-native';

export default class RootComp extends Module{

	constructor(props) {
		super(props);
	}

	display() {
	  return (<View>
	    <Text>{this.props.text || ""} - {this.props.second}</Text>
	    {this.props.children}
	    </View>);
	}
}

RootComp.Inputs = {
	text: new Types.Text().require().default("Sample Text"),
	second: new Types.Integer().require().default(5)
}
