forked from agrawal-rohit/pearl-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
79 lines (76 loc) · 2.74 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import React from "react";
import {
useFonts,
Poppins_300Light,
Poppins_400Regular,
Poppins_500Medium,
Poppins_600SemiBold,
Poppins_700Bold,
Poppins_800ExtraBold,
Poppins_300Light_Italic,
Poppins_700Bold_Italic,
Poppins_200ExtraLight,
Poppins_100Thin_Italic,
Poppins_100Thin,
Poppins_400Regular_Italic,
Poppins_500Medium_Italic,
Poppins_600SemiBold_Italic,
Poppins_800ExtraBold_Italic,
Poppins_900Black,
Poppins_900Black_Italic,
Poppins_200ExtraLight_Italic,
} from "@expo-google-fonts/poppins";
import { ThemeProvider } from "./src/theme/src/themeContext";
import Screen from "./src/components/Atoms/Screen/Screen";
import Avatar from "./src/components/Molecules/Avatar/Avatar";
import AvatarGroup from "./src/components/Molecules/Avatar/AvatarGroup";
const App = () => {
const [haveFontsLoaded] = useFonts({
"Poppins-Hairline": Poppins_100Thin,
"Poppins-HairlineItalic": Poppins_100Thin_Italic,
"Poppins-Thin": Poppins_200ExtraLight,
"Poppins-ThinItalic": Poppins_200ExtraLight_Italic,
"Poppins-Light": Poppins_300Light,
"Poppins-LightItalic": Poppins_300Light_Italic,
"Poppins-Regular": Poppins_400Regular,
"Poppins-RegularItalic": Poppins_400Regular_Italic,
"Poppins-Medium": Poppins_500Medium,
"Poppins-MediumItalic": Poppins_500Medium_Italic,
"Poppins-SemiBold": Poppins_600SemiBold,
"Poppins-SemiBoldItalic": Poppins_600SemiBold_Italic,
"Poppins-Bold": Poppins_700Bold,
"Poppins-BoldItalic": Poppins_700Bold_Italic,
"Poppins-ExtraBold": Poppins_800ExtraBold,
"Poppins-ExtraBoldItalic": Poppins_800ExtraBold_Italic,
"Poppins-Black": Poppins_900Black,
"Poppins-BlackItalic": Poppins_900Black_Italic,
});
return (
<ThemeProvider haveFontsLoaded={haveFontsLoaded}>
<Screen>
<AvatarGroup
spacing="2xl"
max={2}
truncatedBackgroundColor={{
light: "neutral.200",
dark: "neutral.700",
}}
>
<Avatar
name="Rohit Agrawal"
src="https://pbs.twimg.com/profile_images/1419369145058041856/eshLFaDy_400x400.jpg"
/>
<Avatar
name="Rohit Agrawal"
src="https://avatars.githubusercontent.com/u/29514438?s=400&u=d194d5de8df93f55038130ccc66429f94f8f900f&v=4"
/>
<Avatar
name="Rohit Agrawal"
src="https://instagram.fdel1-3.fna.fbcdn.net/v/t51.2885-19/s320x320/160616189_1075891466264003_198594308312142696_n.jpg?_nc_ht=instagram.fdel1-3.fna.fbcdn.net&_nc_cat=111&_nc_ohc=-URhWepekUsAX_wt_-J&edm=ABfd0MgBAAAA&ccb=7-4&oh=00_AT-caDqy7XqUUTkGv5_QytlFTxtdZ2wVhZDgB4vU3Jl2qQ&oe=61DF5972&_nc_sid=7bff83"
/>
</AvatarGroup>
</Screen>
</ThemeProvider>
);
};
export default App;