12345678910111213141516171819202122232425 |
- 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,
- ...restProps
- } = props;
- if(!width) width = BaseContainer.Inputs.width.default;
- if(!height) height = BaseContainer.Inputs.height.default;
- return (
- <View {...restProps} style={{width, height}}>
- </View>
- );
- }
- BaseContainer.Inputs = {
- width: new Types.Integer().require().default(50),
- height: new Types.Integer().require().default(50)
- }
|