-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
UseFonts throws the following error on BigSur but its ok on Catalina
FontStatus: [Error: Unexpected status line: Y�] false
import * as React from "react";
import { View, Text, StyleSheet } from "react-native";
import AppLoading from "expo-app-loading";
import {
useFonts,
Roboto_100Thin,
Roboto_100Thin_Italic,
Roboto_300Light,
Roboto_300Light_Italic,
Roboto_400Regular,
Roboto_400Regular_Italic,
Roboto_500Medium,
Roboto_500Medium_Italic,
Roboto_700Bold,
Roboto_700Bold_Italic,
Roboto_900Black,
Roboto_900Black_Italic,
} from "@expo-google-fonts/roboto";
export default function App() {
let [loaded, error] = useFonts({
Roboto_100Thin,
Roboto_100Thin_Italic,
Roboto_300Light,
Roboto_300Light_Italic,
Roboto_400Regular,
Roboto_400Regular_Italic,
Roboto_500Medium,
Roboto_500Medium_Italic,
Roboto_700Bold,
Roboto_700Bold_Italic,
Roboto_900Black,
Roboto_900Black_Italic,
});
if (!loaded) {
return <AppLoading />;
}
console.log("FontStatus:", error, loaded);
return (
<View>
<Text style={{ fontFamily: "Roboto_100Thin", fontSize: 30 }}>
ABCDEFGHIabcdefghi
</Text>
</View>
);
}
Metadata
Metadata
Assignees
Labels
No labels