Install package expo-font
npm install expo-font
Go to google and visit google fonts and download the required fonts like Poppins, Roboto.
Then create one folder named fonts at the assets or root folder.
Then at the root of your project example App.js.
import the useFonts function.
import { useFonts } from "expo-font";
Then load the fonts.
const [fontsLoaded] = useFonts({
"Roboto-Bold": require("./fonts/Roboto-Bold.ttf"),
"Roboto-Light": require("./fonts/Roboto-Light.ttf"),
"Roboto-Medium": require("./fonts/Roboto-Medium.ttf"),
"Roboto-Regular": require("./fonts/Roboto-Regular.ttf"),
});
Check fonts loaded or not
if(! fontsLoaded){
return null;
}
Now these fonts will be available in your whole app like global fonts.