import React, { ReactNode, useMemo } from 'react'; import { SafeAreaView, StyleSheet, View } from 'react-native'; import { useTheme } from '../theme/ThemeProvider'; interface MainContainerProps { children: ReactNode; style?: any; // You can define a more specific style type if needed } const MainContainer: React.FC = ({ children, style }) => { const { Colors, isDarkMode } = useTheme(); const styles = useMemo(() => createStyles(Colors), [Colors]); return ( {children} ) } const createStyles = (Colors: any) => { return StyleSheet.create({ container: { flex: 1, }, }); }; export default MainContainer;