From 7a5474a27a132a08ef92cea594fa990043c61d17 Mon Sep 17 00:00:00 2001 From: Artur Gurgul Date: Mon, 4 Aug 2025 08:02:56 +0200 Subject: [PATCH] Remove code that was created just to see the effect --- App.tsx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/App.tsx b/App.tsx index 765ecbd..85e543d 100644 --- a/App.tsx +++ b/App.tsx @@ -28,8 +28,8 @@ export default function App() { try { const result = await TestingServiceModule.greet('John') setMessage(result); - } catch (e) { - //Alert.alert('Error', String(e?.message ?? e)) + } catch (error) { + console.error(error) } } @@ -43,14 +43,6 @@ export default function App() { setColor("#00F") } } - - TestingServiceModule.greet('John') - .then((message: string) => { - setMessage(message) - }) - .catch((error: string) => { - console.error(error); - }); }) return () => { @@ -62,8 +54,8 @@ export default function App() { {message ?? 'Waiting for message...'} - - + +