123456789101112131415161718192021222324252627 |
- import React from 'react';
- import { StyleSheet, Text, View, TextInput, Button } from 'react-native';
- import Types from '../../lib/Types';
- export default function BaseContainer(props) {
- let {
- selected,
- width,
- height,
- overflow,
- ...restProps
- } = props;
- if(!width) width = BaseContainer.Inputs.width.default;
- if(!height) height = BaseContainer.Inputs.height.default;
- return (
- <View {...restProps} style={{width, height, overflow}}>
- </View>
- );
- }
- BaseContainer.Inputs = {
- width: new Types.Integer().require().default(50),
- height: new Types.Integer().require().default(50),
- overflow: new Types.Integer().require().default('hidden')
- }
|