fix: load font
This commit is contained in:
parent
4a311764dc
commit
8ba858f876
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue