From 595bb7852e6ca897540cd3d11df199fc94054eaf Mon Sep 17 00:00:00 2001 From: Thisisme-Andrew Date: Mon, 29 Jan 2024 03:41:04 +0800 Subject: [PATCH 1/4] init commit, Button structure created --- src/StopWatchButton.tsx | 14 ++++++++++---- tsconfig.json | 1 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/StopWatchButton.tsx b/src/StopWatchButton.tsx index 8768555..a2ae834 100644 --- a/src/StopWatchButton.tsx +++ b/src/StopWatchButton.tsx @@ -1,8 +1,14 @@ -import { View } from 'react-native'; +import React from 'react'; +import { Button, GestureResponderEvent } from 'react-native'; -export default function StopWatchButton() { +export default function StopWatchButton({ title, onPress } : { + title: string; + onPress: (event: GestureResponderEvent) => void; +}) { return ( - - +