prepared folderstructure for monorepo with express.js
This commit is contained in:
23
apps/client/src/components/BaseBackground.tsx
Normal file
23
apps/client/src/components/BaseBackground.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { View } from "react-native"
|
||||
import currentTheme from "../Themes"
|
||||
import { ReactNode } from "react";
|
||||
|
||||
type BaseBackgroundProps = {
|
||||
children?: ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const BaseBackground = (props: BaseBackgroundProps) => {
|
||||
return (
|
||||
<View
|
||||
className={`h-full ${props.className}`}
|
||||
style={{
|
||||
backgroundColor: currentTheme.primeBg,
|
||||
}}
|
||||
>
|
||||
{props.children}
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
export default BaseBackground;
|
||||
Reference in New Issue
Block a user