import React from 'react'; import { StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import { SafeAreaView as SafeAreaContext } from 'react-native-safe-area-context'; import { themes } from '../constants/colors'; import { withTheme } from '../theme'; const styles = StyleSheet.create({ view: { flex: 1 } }); interface ISafeAreaView { testID: string; theme: string; vertical: boolean; style: object; children: JSX.Element; } const SafeAreaView = React.memo(({ style, children, testID, theme, vertical = true, ...props }: ISafeAreaView) => ( {children} )); export default withTheme(SafeAreaView);