Remove code that was created just to see the effect
This commit is contained in:
parent
bf94769573
commit
7a5474a27a
1 changed files with 4 additions and 12 deletions
16
App.tsx
16
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() {
|
|||
<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>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue