@expo-google-fonts/roboto v0.4.0
@expo-google-fonts/roboto
This package lets you use the Roboto font family from Google Fonts in your Expo app.
Roboto

This font family contains 18 styles.
Roboto_100ThinRoboto_200ExtraLightRoboto_300LightRoboto_400RegularRoboto_500MediumRoboto_600SemiBoldRoboto_700BoldRoboto_800ExtraBoldRoboto_900BlackRoboto_100Thin_ItalicRoboto_200ExtraLight_ItalicRoboto_300Light_ItalicRoboto_400Regular_ItalicRoboto_500Medium_ItalicRoboto_600SemiBold_ItalicRoboto_700Bold_ItalicRoboto_800ExtraBold_ItalicRoboto_900Black_Italic
Usage
Run this command from the shell in the root directory of your Expo project to add the font family package to your project
npx expo install @expo-google-fonts/roboto expo-fontNow add code like this to your project
import { Text, View } from "react-native";
import { useFonts } from '@expo-google-fonts/roboto/useFonts';
import { Roboto_100Thin } from '@expo-google-fonts/roboto/100Thin';
import { Roboto_200ExtraLight } from '@expo-google-fonts/roboto/200ExtraLight';
import { Roboto_300Light } from '@expo-google-fonts/roboto/300Light';
import { Roboto_400Regular } from '@expo-google-fonts/roboto/400Regular';
import { Roboto_500Medium } from '@expo-google-fonts/roboto/500Medium';
import { Roboto_600SemiBold } from '@expo-google-fonts/roboto/600SemiBold';
import { Roboto_700Bold } from '@expo-google-fonts/roboto/700Bold';
import { Roboto_800ExtraBold } from '@expo-google-fonts/roboto/800ExtraBold';
import { Roboto_900Black } from '@expo-google-fonts/roboto/900Black';
import { Roboto_100Thin_Italic } from '@expo-google-fonts/roboto/100Thin_Italic';
import { Roboto_200ExtraLight_Italic } from '@expo-google-fonts/roboto/200ExtraLight_Italic';
import { Roboto_300Light_Italic } from '@expo-google-fonts/roboto/300Light_Italic';
import { Roboto_400Regular_Italic } from '@expo-google-fonts/roboto/400Regular_Italic';
import { Roboto_500Medium_Italic } from '@expo-google-fonts/roboto/500Medium_Italic';
import { Roboto_600SemiBold_Italic } from '@expo-google-fonts/roboto/600SemiBold_Italic';
import { Roboto_700Bold_Italic } from '@expo-google-fonts/roboto/700Bold_Italic';
import { Roboto_800ExtraBold_Italic } from '@expo-google-fonts/roboto/800ExtraBold_Italic';
import { Roboto_900Black_Italic } from '@expo-google-fonts/roboto/900Black_Italic';
export default () => {
let [fontsLoaded] = useFonts({
Roboto_100Thin,
Roboto_200ExtraLight,
Roboto_300Light,
Roboto_400Regular,
Roboto_500Medium,
Roboto_600SemiBold,
Roboto_700Bold,
Roboto_800ExtraBold,
Roboto_900Black,
Roboto_100Thin_Italic,
Roboto_200ExtraLight_Italic,
Roboto_300Light_Italic,
Roboto_400Regular_Italic,
Roboto_500Medium_Italic,
Roboto_600SemiBold_Italic,
Roboto_700Bold_Italic,
Roboto_800ExtraBold_Italic,
Roboto_900Black_Italic
});
let fontSize = 24;
let paddingVertical = 6;
if (!fontsLoaded) {
return null;
} else {
return (
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_100Thin"
}}>
Roboto Thin
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_200ExtraLight"
}}>
Roboto Extra Light
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_300Light"
}}>
Roboto Light
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_400Regular"
}}>
Roboto Regular
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_500Medium"
}}>
Roboto Medium
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_600SemiBold"
}}>
Roboto Semi Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_700Bold"
}}>
Roboto Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_800ExtraBold"
}}>
Roboto Extra Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_900Black"
}}>
Roboto Black
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_100Thin_Italic"
}}>
Roboto Thin Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_200ExtraLight_Italic"
}}>
Roboto Extra Light Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_300Light_Italic"
}}>
Roboto Light Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_400Regular_Italic"
}}>
Roboto Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_500Medium_Italic"
}}>
Roboto Medium Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_600SemiBold_Italic"
}}>
Roboto Semi Bold Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_700Bold_Italic"
}}>
Roboto Bold Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_800ExtraBold_Italic"
}}>
Roboto Extra Bold Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "Roboto_900Black_Italic"
}}>
Roboto Black Italic
</Text>
</View>
);
}
};🔡 Gallery
![]() | ![]() | ![]() | |
![]() | ![]() | ![]() | |
![]() | ![]() | ![]() | |
![]() | ![]() | ![]() | |
![]() | ![]() | ![]() | |
![]() | ![]() | ![]() |
👩💻 Use During Development
If you are trying out lots of different fonts, you can try using the @expo-google-fonts/dev package.
You can import any font style from any Expo Google Fonts package from it. It will load the fonts over the network at runtime instead of adding the asset as a file to your project, so it may take longer for your app to get to interactivity at startup, but it is extremely convenient for playing around with any style that you want.
📖 License
The @expo-google-fonts/roboto package and its code are released under the MIT license.
All the fonts in the Google Fonts catalog are free and open source.
Check the Roboto page on Google Fonts for the specific license of this font family.
You can use these fonts freely in your products & projects - print or digital, commercial or otherwise. However, you can't sell the fonts on their own. This isn't legal advice, please consider consulting a lawyer and see the full license for all details.
🔗 Links
- Roboto on Google Fonts
- Google Fonts
- This package on npm
- This package on GitHub
- The Expo Google Fonts project on GitHub
@expo-google-fonts/devDevlopment Package
🤝 Contributing
Contributions are very welcome! This entire directory, including what you are reading now, was generated from code. Instead of submitting PRs to this directly, please make contributions to the generator instead.

















