From 82d76ded62f9f74b11cf98c0a2963e070ea63ae7 Mon Sep 17 00:00:00 2001 From: Love Otudor Date: Mon, 29 Jan 2024 22:59:44 +0100 Subject: [PATCH 1/4] implement button components --- src/StopWatchButton.tsx | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/src/StopWatchButton.tsx b/src/StopWatchButton.tsx index 8768555..06403a2 100644 --- a/src/StopWatchButton.tsx +++ b/src/StopWatchButton.tsx @@ -1,8 +1,30 @@ -import { View } from 'react-native'; - -export default function StopWatchButton() { - return ( - - - ); -} \ No newline at end of file +import {Button, StyleSheet, View} from 'react-native'; + +interface StopWatchButtonProps { + label: string + onPress: () => void + +} + +export default function StopWatchButton({label, onPress}: StopWatchButtonProps) { + return ( + +