react-native-twopane-navigation
Version:
React Native package for dual screen devices navigation support (Surface Duo)
27 lines (26 loc) • 666 B
TypeScript
import React from 'react';
import { ViewStyle, StyleProp } from 'react-native';
interface IPaneOverlayProps {
/**
* Content of the overlay
*/
children: React.ReactElement<any>;
/**
* If true, the overlay is visible
*/
isVisible: boolean;
/**
* Style for the backdrop
*/
backdropStyle?: StyleProp<ViewStyle>;
/**
* Style of the actual overlay
*/
overlayStyle?: StyleProp<ViewStyle>;
/**
* Callback when user touches the backdrop
*/
onBackdropPress: () => void;
}
declare const PaneOverlay: (props: IPaneOverlayProps) => JSX.Element;
export default PaneOverlay;