From 275075fd5cea1a1e7c77b3ab7063b258cb582e99 Mon Sep 17 00:00:00 2001 From: alguilhot Date: Sun, 16 Oct 2022 16:49:31 +0200 Subject: [PATCH] ADD: Ajout du component ScreenIndicator --- bob_party/src/components/ScreenIndicator.tsx | 13 ++++++++++++ .../components/style/ScreenIndicator.style.js | 21 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 bob_party/src/components/ScreenIndicator.tsx create mode 100644 bob_party/src/components/style/ScreenIndicator.style.js diff --git a/bob_party/src/components/ScreenIndicator.tsx b/bob_party/src/components/ScreenIndicator.tsx new file mode 100644 index 0000000..8acaf9d --- /dev/null +++ b/bob_party/src/components/ScreenIndicator.tsx @@ -0,0 +1,13 @@ +import { FC, ReactNode } from "react" +import { Pressable, Image, ImageStyle, Text, View, Alert, ImageSourcePropType, TextStyle } from "react-native" +import React from "react" +import styles from './style/ScreenIndicator.style' + +export const ScreenIndicator: FC<{title: String}> = ({title}) => +{ + return( + + {title} + + ) +} \ No newline at end of file diff --git a/bob_party/src/components/style/ScreenIndicator.style.js b/bob_party/src/components/style/ScreenIndicator.style.js new file mode 100644 index 0000000..3616932 --- /dev/null +++ b/bob_party/src/components/style/ScreenIndicator.style.js @@ -0,0 +1,21 @@ +import { StyleSheet } from 'react-native'; + +export default StyleSheet.create({ + textTop: { + textAlign: "center", + fontSize: 16, + lineHeight: 21, + fontWeight: 'bold', + letterSpacing: 0.25, + color: 'white', + }, + textTopView: { + backgroundColor: '#0085FF', + width: '30%', + padding: 5, + paddingBottom: 10, + alignSelf: 'center', + borderBottomRightRadius: 50, + borderBottomLeftRadius: 50, + } +}); \ No newline at end of file