aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/CaptionScreenHeader.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <37447613+shravyaramesh@users.noreply.github.com>2020-10-13 13:34:42 -0700
committerGitHub <noreply@github.com>2020-10-13 16:34:42 -0400
commit22142e2f8aa7d5eed8de1e520fd5ce825d2c63ca (patch)
tree46dd2646359fadd99dd41d8d3e67d11c8cade8a5 /src/components/profile/CaptionScreenHeader.tsx
parent2bd196c6165cbf45544dbc0a021daf5d313fde3c (diff)
TMA - 232 Create caption screen with image picker (#53)
* Added image picture functionality * Created caption screen and uploads to moments endpoint consisting of the picture and caption only Co-authored-by: Husam Salhab <47015061+hsalhab@users.noreply.github.com>
Diffstat (limited to 'src/components/profile/CaptionScreenHeader.tsx')
-rw-r--r--src/components/profile/CaptionScreenHeader.tsx37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/components/profile/CaptionScreenHeader.tsx b/src/components/profile/CaptionScreenHeader.tsx
new file mode 100644
index 00000000..4715b4ef
--- /dev/null
+++ b/src/components/profile/CaptionScreenHeader.tsx
@@ -0,0 +1,37 @@
+import React from 'react';
+import {Text, View, StyleSheet, ViewProps} from 'react-native';
+interface CaptionScreenHeaderProps extends ViewProps {
+ title: string;
+}
+const CaptionScreenHeader: React.FC<CaptionScreenHeaderProps> = ({
+ title,
+ style,
+}) => {
+ return (
+ <View style={[styles.container, style]}>
+ <View style={styles.headerContainer}>
+ <Text style={styles.header}>{title}</Text>
+ </View>
+ </View>
+ );
+};
+
+const styles = StyleSheet.create({
+ container: {
+ flexDirection: 'row',
+ justifyContent: 'center',
+ height: 30,
+ },
+ headerContainer: {
+ position: 'absolute',
+ left: '50%',
+ },
+ header: {
+ position: 'relative',
+ right: '50%',
+ fontSize: 20,
+ fontWeight: 'bold',
+ color: 'white',
+ },
+});
+export default CaptionScreenHeader;