3
0

index.js 659 B

123456789101112131415161718192021222324252627
  1. import React from 'react';
  2. import { StyleSheet, Text, View, TextInput, Button } from 'react-native';
  3. import Types from '../../lib/Types';
  4. export default function BaseContainer(props) {
  5. let {
  6. selected,
  7. width,
  8. height,
  9. overflow,
  10. ...restProps
  11. } = props;
  12. if(!width) width = BaseContainer.Inputs.width.default;
  13. if(!height) height = BaseContainer.Inputs.height.default;
  14. return (
  15. <View {...restProps} style={{width, height, overflow}}>
  16. </View>
  17. );
  18. }
  19. BaseContainer.Inputs = {
  20. width: new Types.Integer().require().default(50),
  21. height: new Types.Integer().require().default(50),
  22. overflow: new Types.Integer().require().default('hidden')
  23. }