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 ( {this.props.text || ""} - {this.props.second} {this.props.children} ); } } RootComp.Inputs = { text: new Types.Text().require().default("Sample Text"), second: new Types.Integer().require().default(5) }