From cf18bf8a049926fbbdb51bf6ecab9cce937ee8d0 Mon Sep 17 00:00:00 2001 From: moist-webDev Date: Fri, 26 May 2023 00:12:34 -0400 Subject: [PATCH] TitleBar init commit --- components/TitleBar.tsx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 components/TitleBar.tsx diff --git a/components/TitleBar.tsx b/components/TitleBar.tsx new file mode 100644 index 0000000..a5d9ab4 --- /dev/null +++ b/components/TitleBar.tsx @@ -0,0 +1,32 @@ +import { StyleSheet, Text, View} from 'react-native'; + +export default function TitleBar({ title='', theme={} }:any){ + return ( + + {title} + + ) +} + +const style = (theme:any) => { + return StyleSheet.create({ + container: { + width: '100%', + backgroundColor: theme.background, + alignItems: 'center', + marginBottom: 20, + paddingTop: 40, + paddingBottom: 10, + shadowColor: '#52006A', + shadowOffset: {width: 0, height: 4}, + shadowOpacity: 0.2, + shadowRadius: 3, + elevation: 20, + }, + text: { + color: theme.text, + fontWeight: 'bold', + fontSize: 20, + }, + }); +} \ No newline at end of file