1 | /// <reference types="react" />
|
2 | import { Component, ReactChildren } from 'react';
|
3 | import { ViewStyle, ViewProperties } from 'react-native';
|
4 | export interface FlexProp extends ViewProperties {
|
5 | /**
|
6 | * flex 字符串, 类似 '1 row' 或者数字 `1`
|
7 | */
|
8 | flex?: string | number;
|
9 | /**
|
10 | * children, 子组件
|
11 | */
|
12 | children?: ReactChildren | ReactChildren[];
|
13 | /**
|
14 | * style 样式
|
15 | */
|
16 | style?: ViewStyle;
|
17 | }
|
18 | export interface StateDefine {
|
19 | }
|
20 | export default class Flex extends Component<FlexProp, StateDefine> {
|
21 | static defaultProps: FlexProp;
|
22 | render(): JSX.Element;
|
23 | }
|