fix: load font

This commit is contained in:
devthejo 2026-01-10 21:50:59 +01:00
parent 4a311764dc
commit 8ba858f876
No known key found for this signature in database
GPG key ID: 00CCA7A92B1D5351

View file

@ -1,4 +1,4 @@
import * as Font from "expo-font";
import { loadAsync } from "expo-font";
const fonts = {
"OpenSans-Regular": require("~/assets/fonts/OpenSans-Regular.ttf"),
@ -10,5 +10,5 @@ const fonts = {
export default async function loadRessources() {
// await new Promise(resolve => setTimeout(resolve, 2000))
await Font.loadAsync(fonts);
await loadAsync(fonts);
}