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

This font family contains 9 styles.
LexendPeta_100ThinLexendPeta_200ExtraLightLexendPeta_300LightLexendPeta_400RegularLexendPeta_500MediumLexendPeta_600SemiBoldLexendPeta_700BoldLexendPeta_800ExtraBoldLexendPeta_900Black
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/lexend-peta expo-fontNow add code like this to your project
import { Text, View } from "react-native";
import { useFonts } from '@expo-google-fonts/lexend-peta/useFonts';
import { LexendPeta_100Thin } from '@expo-google-fonts/lexend-peta/100Thin';
import { LexendPeta_200ExtraLight } from '@expo-google-fonts/lexend-peta/200ExtraLight';
import { LexendPeta_300Light } from '@expo-google-fonts/lexend-peta/300Light';
import { LexendPeta_400Regular } from '@expo-google-fonts/lexend-peta/400Regular';
import { LexendPeta_500Medium } from '@expo-google-fonts/lexend-peta/500Medium';
import { LexendPeta_600SemiBold } from '@expo-google-fonts/lexend-peta/600SemiBold';
import { LexendPeta_700Bold } from '@expo-google-fonts/lexend-peta/700Bold';
import { LexendPeta_800ExtraBold } from '@expo-google-fonts/lexend-peta/800ExtraBold';
import { LexendPeta_900Black } from '@expo-google-fonts/lexend-peta/900Black';
export default () => {
let [fontsLoaded] = useFonts({
LexendPeta_100Thin,
LexendPeta_200ExtraLight,
LexendPeta_300Light,
LexendPeta_400Regular,
LexendPeta_500Medium,
LexendPeta_600SemiBold,
LexendPeta_700Bold,
LexendPeta_800ExtraBold,
LexendPeta_900Black
});
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: "LexendPeta_100Thin"
}}>
Lexend Peta Thin
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "LexendPeta_200ExtraLight"
}}>
Lexend Peta Extra Light
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "LexendPeta_300Light"
}}>
Lexend Peta Light
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "LexendPeta_400Regular"
}}>
Lexend Peta Regular
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "LexendPeta_500Medium"
}}>
Lexend Peta Medium
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "LexendPeta_600SemiBold"
}}>
Lexend Peta Semi Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "LexendPeta_700Bold"
}}>
Lexend Peta Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "LexendPeta_800ExtraBold"
}}>
Lexend Peta Extra Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "LexendPeta_900Black"
}}>
Lexend Peta Black
</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/lexend-peta 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 Lexend Peta 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
- Lexend Peta 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.








