question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[native-stack] `headerLargeTitleStyle` isn't accepting any Expo fonts

See original GitHub issue

Moved from react-navigation/react-navigation#6750. Originally opened by @iDuuck


Current Behavior

When I am trying to include a custom font into Expo, I am not able to use it using the native stack navigators fontFamily attributes. It keeps the SF Font.

Expected Behavior

I want the font to be the right one actually.

How to reproduce

Implement a custom font into an Expo project and try to use the font for any of the title styles.

Your Environment

software version
iOS or Android iOS
@react-navigation/native next
@react-navigation/native-stack ^5.0.0-alpha.29
react-native-screens ^5.0.0-alpha.29
react-native https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz
expo 36
node v12.8.0
npm or yarn 1.19.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
iduuckcommented, Mar 3, 2020

@Hirbod Native-stack belonged to react-navigation before this issue was moved. Now it seems a little abandoned. No documentation and no Changelog or so.

1reaction
WoLewickicommented, Mar 27, 2020

I made a PR: #442. Can you check if it resolves the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

headerLargeTitleStyle isn't accepting any Expo fonts #6750
When I am trying to include a custom font into Expo, I am not able to use it using the native stack navigators...
Read more >
Expo React Native project getting error when I use custom ...
Expo React Native project getting error when I use custom google fonts and AppLoading in my project. Thank you in advance for your...
Read more >
Native Stack Navigator | React Navigation
Native Stack Navigator provides a way for your app to transition between screens where each new screen is placed on top of a...
Read more >
Custom fonts - Expo Documentation
This documentation covers the aspects of getting a custom font, loading it in your project and what are some of the best practices...
Read more >
How to use Custom Fonts in React Native Expo - YouTube
In this video, we look at how to use custom fonts in your react native expo application.GET SOURCE CODE 📀⬇️🔴 Get Project Source...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found