import { FunctionComponentElement } from "react"; import { QGridLayoutSignals, QGridLayout, QWidget } from "@nodegui/nodegui"; import { ViewProps } from "../View/RNView"; import { RNComponent } from "../config"; import { RNGridRow, GridRowProps } from "./GridRow/RNGridRow"; import { DataWithOffset } from "./utils"; export declare type GridViewColumnProps = { [ColumnIndex: number]: { stretch?: number; minWidth?: number; }; }; export declare type GridViewRowProps = { [RowIndex: number]: { stretch?: number; minHeight?: number; }; }; export interface GridViewProps extends ViewProps { children: Array> | FunctionComponentElement; columnProps?: GridViewColumnProps; rowProps?: GridViewRowProps; horizontalSpacing?: number; verticalSpacing?: number; } /** * @ignore */ export declare class RNGridView extends QWidget implements RNComponent { native: any; initialProps?: GridViewProps; childRows: Array>; layout(): QGridLayout | null; setLayout(layout: QGridLayout): void; updateChildren(startIndex?: number): void; setProps(newProps: GridViewProps, oldProps: GridViewProps): void; appendInitialChild(child: RNGridRow): void; appendChild(child: RNGridRow): void; insertBefore(child: RNGridRow, beforeChild: RNGridRow): void; removeChild(child: RNGridRow): void; static tagName: string; }