Remove code that was created just to see the effect

This commit is contained in:
Artur Gurgul 2025-08-04 08:02:56 +02:00
parent bf94769573
commit 7a5474a27a

16
App.tsx
View file

@ -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() {
<ScrollView style={{...styles.container, backgroundColor: color}}>
<StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
<Text>{message ?? 'Waiting for message...'}</Text>
<CustomButton style={{ height: 200 }} />
<BaseButton style={{ height: 200 }} />
<CustomButton style={{ height: 70 }} />
<BaseButton style={{ height: 70 }} />
<Button title="Call Swift greet()" onPress={onPress} />
</ScrollView>
);