forked from berkelmas/ReactNativeCreditCard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
19 lines (17 loc) · 733 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import * as Font from "expo-font";
import CreditCard from "./components/CreditCard";
export default function App() {
const [appLoaded, setAppLoaded] = React.useState(false);
React.useEffect(() => {
Font.loadAsync({
"Roboto-Light": require("./assets/fonts/Roboto-Light.ttf"),
"Roboto-Medium": require("./assets/fonts/Roboto-Medium.ttf"),
"Roboto-Regular": require("./assets/fonts/Roboto-Regular.ttf"),
"Roboto-Thin": require("./assets/fonts/Roboto-Thin.ttf"),
"Roboto-Mono": require("./assets/fonts/RobotoMono-Regular.ttf")
}).then(() => setAppLoaded(true));
}, []);
return appLoaded && <CreditCard />;
}