-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
28 lines (27 loc) · 863 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 { StatusBar } from 'expo-status-bar'
import { useColorScheme } from 'react-native'
import { Paragraph, TamaguiProvider, Theme, YStack } from 'tamagui'
import { useFonts } from 'expo-font'
import config from './tamagui.config'
export default function App() {
const colorScheme = useColorScheme()
const [loaded] = useFonts({
Inter: require('@tamagui/font-inter/otf/Inter-Medium.otf'),
InterBold: require('@tamagui/font-inter/otf/Inter-Bold.otf'),
})
if (!loaded) {
return null
}
return (
<TamaguiProvider config={config}>
<Theme name="dark">
<YStack f={1} jc="center" ai="center" backgroundColor={'#002429'}>
<Paragraph color="$color" jc="center">
Expo App with Tamagui!
</Paragraph>
<StatusBar style="auto" />
</YStack>
</Theme>
</TamaguiProvider>
)
}