import React from 'react' import {View, ViewStyle} from 'react-native' import {StyleProp} from 'react-native' import {useSafeAreaInsets} from 'react-native-safe-area-context' import {atoms as a} from '#/alf' // Every screen should have a Layout component wrapping it. // This component provides a default padding for the top of the screen. // This allows certain screens to avoid the top padding if they want to. // // In a future PR I will add a unified header component to this file and // things like a preconfigured scrollview. /** * Every screen should have a Layout.Screen component wrapping it. * This component provides a default padding for the top of the screen * and height/minHeight */ let Screen = ({ disableTopPadding, style, ...props }: React.ComponentProps & { disableTopPadding?: boolean style?: StyleProp }): React.ReactNode => { const {top} = useSafeAreaInsets() return ( ) } Screen = React.memo(Screen) export {Screen}