import React from "react"; import { SafeAreaView, StyleSheet } from "react-native"; import { Div } from "react-native-magnus"; import type { DivProps } from "react-native-magnus"; interface Props extends DivProps { children: React.ReactNode; safe?: boolean; } export const Layout = ({ children, safe = true, ...divProps }: Props) => { if (safe) { return {children}; } return (
{children}
); }; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "#2d3748", }, });