Open
Description
Description
Font only get reflected on ios but not android
CodeSandbox/Snack link
Steps to reproduce
I exported the components from gluestack
import {GluestackUIProvider, SafeAreaView, Text} from './components';
import {useFonts} from 'expo-font';
import {Montserrat_400Regular} from '@expo-google-fonts/montserrat';
import {Licorice_400Regular} from '@expo-google-fonts/licorice';
export default function App() {
const [fontsLoaded] = useFonts({
Montserrat_400Regular,
Licorice_400Regular,
});
return (
<GluestackUIProvider>
<SafeAreaView justifyContent="center" alignItems="center" flex={1}>
<Text fontFamily="$heading">Hello World!</Text>
<Text fontFamily="$body">Hello World!</Text>
</SafeAreaView>
</GluestackUIProvider>
);
}
In the gluestack-ui.config.ts file, i changed below line to
fonts: { heading: 'licorice', body: 'licorice', mono: 'montserrat', },
Attached below is my package.json
"dependencies": {
"@expo-google-fonts/hind": "^0.2.3",
"@expo-google-fonts/kolker-brush": "^0.2.3",
"@expo-google-fonts/licorice": "^0.2.3",
"@expo-google-fonts/montserrat": "^0.2.3",
"@gluestack-style/react": "^1.0.56",
"@gluestack-ui/config": "latest",
"@gluestack-ui/themed": "^1.1.30",
"expo": "^51.0.0",
"expo-font": "~12.0.7",
"react": "18.2.0",
"react-native": "0.74.2",
"react-native-svg": "13.4.0"
},
gluestack-ui Version
1.1.30
Platform
- Expo
- React Native CLI
- Next
- Web
- Android
- iOS
Other Platform
No response
Additional Information

Metadata
Metadata
Assignees
Type
Projects
Status
Backlog