3
0

index.js 531 B

1234567891011121314151617181920212223
  1. import React from 'react';
  2. import Types from '../../lib/Types';
  3. import Module from '../../lib/Module';
  4. import { StyleSheet, Text, View } from 'react-native';
  5. export default class RootComp extends Module{
  6. constructor(props) {
  7. super(props);
  8. }
  9. display() {
  10. return //(<View>
  11. <Text>{this.props.text || ""} - {this.props.second}</Text>;
  12. // {this.props.children}
  13. // </View>);
  14. }
  15. }
  16. RootComp.Inputs = {
  17. text: new Types.Text().require().default("Sample Text"),
  18. second: new Types.Integer().require().default(5)
  19. }