20 lines
No EOL
376 B
TypeScript
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>
|
|
)
|
|
}; |