-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
28 lines (25 loc) · 915 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { GluestackUIProvider, Text, Box, Button, ButtonText, VStack, Modal, Heading } from "@gluestack-ui/themed"
import { SafeAreaView } from "react-native"
import { config } from "@gluestack-ui/config"
import { useState } from "react";
export default function App() {
const [modelText, setModelText] = useState("Hello, World!");
return (
<GluestackUIProvider config={config}>
<SafeAreaView>
<Box justifyContent="center" alignItems="center" padding="$8">
<VStack space="lg">
<Heading size="lg">
</Heading>
<Text>Open up App.js to start working on your app!</Text>
<Button onPress={() => {
setModelText("哈囉,世界!")
}}>
<ButtonText>{modelText}</ButtonText>
</Button>
</VStack>
</Box>
</SafeAreaView>
</GluestackUIProvider>
)
}