react-native-twopaneview
Version:
react-native layout control for dual screen devices (Duo)
29 lines (28 loc) • 934 B
TypeScript
import { Component } from 'react';
import { DeviceOrientation } from 'react-native-dualscreeninfo';
import { PanePriority, PaneMode } from "./types";
declare type State = {
spanning: boolean;
orientation: DeviceOrientation;
};
export interface TwoPaneViewProps {
panePriority: PanePriority;
paneMode: PaneMode;
}
export declare class TwoPaneView extends Component<TwoPaneViewProps, State> {
state: State;
getPanePriority(): PanePriority;
getPaneMode(): PaneMode;
componentDidMount(): void;
componentWillUnmount(): void;
private _handleSpanningChanged;
render(): JSX.Element;
renderChildPanes(): JSX.Element | JSX.Element[];
renderPaneWithPriority(): JSX.Element;
renderBothPanes(): JSX.Element[];
renderPane1(): JSX.Element;
renderPane2(): JSX.Element;
renderSeparator(): JSX.Element;
isHorizontalOrientation(): boolean;
}
export {};