-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
40 lines (36 loc) · 1.32 KB
/
App.tsx
File metadata and controls
40 lines (36 loc) · 1.32 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
import { StatusBar } from "expo-status-bar";
import { Text, View } from "react-native";
import "./global.css";
export default function App() {
return (
<View className="flex-1 items-center justify-center bg-white gap-4 px-6">
<Text className="text-2xl font-bold text-gray-900">
Custom Fonts with Nativewind v5
</Text>
<View className="w-full gap-3 mt-4">
<Text className="font-inter text-lg text-gray-700">
Inter Regular - The quick brown fox
</Text>
<Text className="font-inter-medium text-lg text-gray-700">
Inter Medium - The quick brown fox
</Text>
<Text className="font-inter-semibold text-lg text-gray-700">
Inter SemiBold - The quick brown fox
</Text>
<Text className="font-inter-bold text-lg text-gray-700">
Inter Bold - The quick brown fox
</Text>
<Text className="font-inter-italic text-lg text-gray-700">
Inter Italic - The quick brown fox
</Text>
<Text className="font-inter-bold-italic text-lg text-gray-700">
Inter Bold Italic - The quick brown fox
</Text>
</View>
<Text className="text-sm text-gray-400 mt-8">
Each line uses a different font-* className
</Text>
<StatusBar style="auto" />
</View>
);
}