import React from 'react';
import {
getStatusBarHeight,
getBottomSpace,
} from 'react-native-iphone-x-helper';
import { View } from '../View';
import { ActivityIndicator } from '../ActivityIndicator';
import { AwareView } from '../AwareView';
import type { Props } from './types';
const LayoutWrapper = (props: Props) => {
const TOP_INSET = getStatusBarHeight(true);
const BOTTOM_INSET = getBottomSpace();
const {
bg,
theme,
p: padding = 0,
children,
style,
insetTop = false,
insetBottom = false,
pb,
pt,
pl,
pr,
...rest
} = props;
return (
{children}
);
};
const LayoutAware = (props: Props) => {
const { loading } = props;
if (loading) {
return ;
}
return ;
};
export default LayoutAware;