Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return null;
return (
{(safeAreaInsets) => (
)}
);
}
const isSplitterTargetVisible = isTargetVisible && !this.props.isTargeted;
const isVertical = StagePanelTypeHelpers.isVertical(type);
return (
{(safeAreaInsets) => {
if (this.props.isInFooterMode)
safeAreaInsets &= ~SafeAreaInsets.Bottom;
return (
private initializeSize() {
if (this.props.panel.size !== undefined || !this._measurer.current)
return;
const location = this.props.location;
if (this.props.initialSize) {
this.props.changeHandler.handlePanelInitialize(location, this.props.initialSize);
return;
}
const clientRect = this._measurer.current.getBoundingClientRect();
const type = getStagePanelType(location);
const size = StagePanelTypeHelpers.isVertical(type) ? clientRect.width : clientRect.height;
this.props.changeHandler.handlePanelInitialize(location, size);
}
}