From ac07d0673edb4942c7c5dc4777e2d189bb35ba2a Mon Sep 17 00:00:00 2001 From: alguilhot Date: Sun, 16 Oct 2022 16:46:11 +0200 Subject: [PATCH] ADD: ajout du component ButtonChangeSkin --- bob_party/src/components/ButtonChangeSkin.tsx | 16 +++++++++++++++ .../style/ButtonChangeSkin.style.js | 20 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 bob_party/src/components/ButtonChangeSkin.tsx create mode 100644 bob_party/src/components/style/ButtonChangeSkin.style.js diff --git a/bob_party/src/components/ButtonChangeSkin.tsx b/bob_party/src/components/ButtonChangeSkin.tsx new file mode 100644 index 0000000..e9e72c4 --- /dev/null +++ b/bob_party/src/components/ButtonChangeSkin.tsx @@ -0,0 +1,16 @@ +import { FC} from "react" +import { Pressable, Text} from "react-native" +import React from "react" +import styles from "./style/ButtonChangeSkin.style" + +export const ButtonChangeSkin: +FC<{ onPress: any;}> += +({onPress}) => + { + return ( + + Changer de skin + + ); + } \ No newline at end of file diff --git a/bob_party/src/components/style/ButtonChangeSkin.style.js b/bob_party/src/components/style/ButtonChangeSkin.style.js new file mode 100644 index 0000000..990fc3b --- /dev/null +++ b/bob_party/src/components/style/ButtonChangeSkin.style.js @@ -0,0 +1,20 @@ +import { StyleSheet } from 'react-native'; + +export default StyleSheet.create({ + button: { + alignItems: 'center', + justifyContent: 'center', + padding: 3, + marginTop: 5, + marginHorizontal: 10, + borderRadius: 10, + backgroundColor: '#2D2C33', + }, + text: { + fontSize: 16, + lineHeight: 21, + fontWeight: 'bold', + letterSpacing: 0.25, + color: 'white', + }, +}); \ No newline at end of file