import React from 'react'; import Module from '../lib/Module'; import {StyleSheet ,TextInput, View, Text } from 'react-native'; import Types from '../lib/Types'; export default class TextComp extends Module { constructor(props) { super(props); this.state = { text: props.text || "" } } display() { let { text, color, fontSize } = this.props; return ( {text} {this.props.children} ) } } TextComp.Inputs = { text: new Types.Text(), color: new Types.Text(), fontSize: new Types.Integer().default(22) }