Tones/components/Container.tsx

20 lines
376 B
TypeScript
Raw Permalink Normal View History

2024-08-30 02:04:58 +00:00
import { View, ViewStyle } from "react-native";
interface ContainerProps {
children?: React.ReactNode;
backgroundColor?: string;
style?: ViewStyle;
}
export const Container = ({
children,
backgroundColor,
style,
}: ContainerProps) => {
return (
<View style={[
{ flex: 1 },
{ backgroundColor },
style
]}>{children}</View>
)
};