|
@@ -2,6 +2,9 @@ import {
|
|
|
StyleSheet,
|
|
StyleSheet,
|
|
|
View
|
|
View
|
|
|
} from "react-native";
|
|
} from "react-native";
|
|
|
|
|
+import {
|
|
|
|
|
+ useFonts
|
|
|
|
|
+} from "expo-font";
|
|
|
import {
|
|
import {
|
|
|
setupNCoreUIKit,
|
|
setupNCoreUIKit,
|
|
|
Text
|
|
Text
|
|
@@ -19,6 +22,21 @@ const App = () => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const ContextAPI = () => {
|
|
const ContextAPI = () => {
|
|
|
|
|
+ /* eslint-disable @typescript-eslint/no-require-imports */
|
|
|
|
|
+ const [loaded] = useFonts({
|
|
|
|
|
+ "Geist-ExtraLight": require("./assets/fonts/Geist-ExtraLight.ttf"),
|
|
|
|
|
+ "Geist-ExtraBold": require("./assets/fonts/Geist-ExtraBold.ttf"),
|
|
|
|
|
+ "Geist-SemiBold": require("./assets/fonts/Geist-SemiBold.ttf"),
|
|
|
|
|
+ "Geist-Regular": require("./assets/fonts/Geist-Regular.ttf"),
|
|
|
|
|
+ "Geist-Medium": require("./assets/fonts/Geist-Medium.ttf"),
|
|
|
|
|
+ "Geist-Black": require("./assets/fonts/Geist-Black.ttf"),
|
|
|
|
|
+ "Geist-Light": require("./assets/fonts/Geist-Light.ttf"),
|
|
|
|
|
+ "Geist-Bold": require("./assets/fonts/Geist-Bold.ttf"),
|
|
|
|
|
+ "Geist-Thin": require("./assets/fonts/Geist-Thin.ttf")
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ if (!loaded) return null;
|
|
|
|
|
+
|
|
|
return <NCoreUIKitBase.Provider>
|
|
return <NCoreUIKitBase.Provider>
|
|
|
<App/>
|
|
<App/>
|
|
|
</NCoreUIKitBase.Provider>;
|
|
</NCoreUIKitBase.Provider>;
|