Tones/components/Container.tsx
2024-08-29 22:04:58 -04:00

20 lines
No EOL
376 B
TypeScript

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>
)
};