import type { PropsWithChildren } from "react"; import React from "react"; import { SafeAreaView, StatusBar, View } from "react-native"; import { createStyleSheet, useStyles } from "react-native-unistyles"; const stylesheet = createStyleSheet((theme) => ({ container: { flex: 1, backgroundColor: theme.colors.background, }, })); type SectionProps = PropsWithChildren<{ style?: object; isSafeAreaView?: boolean; }>; const WrapperContainer = ({ children, style, isSafeAreaView = true }: SectionProps): React.JSX.Element => { const { styles } = useStyles(stylesheet); const { theme } = useStyles(); if (isSafeAreaView) { return ( {children} ); } return ( {children} ); }; export default React.memo(WrapperContainer);