UNPKG

608 BTypeScriptView Raw
1/// <reference types="react" />
2import { Component, ReactChildren } from 'react';
3import { ViewStyle, ViewProperties } from 'react-native';
4export 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}
18export interface StateDefine {
19}
20export default class Flex extends Component<FlexProp, StateDefine> {
21 static defaultProps: FlexProp;
22 render(): JSX.Element;
23}