Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix android header title font weight #7720

Merged
merged 1 commit into from
Mar 16, 2020

Conversation

vonovak
Copy link
Member

@vonovak vonovak commented Mar 3, 2020

the previously used fort weight of 500 would effectively be converted to fontWeight: bold. Because of facebook/react-native#25341 that does not happen as of 0.61 - fontWeight 500 for roboto actually is the same as 400 in latest RN. Because of that the title font doesn't look right (to me at least 😄 ) - it certainly looks different than before.

this fixes the title appearance to look as customary (it's thicker than now, but not as thick as it used to be).

images: old behavior, master, my branch

@github-actions
Copy link

github-actions bot commented Mar 3, 2020

The Expo app for the example from this branch is ready!

expo.io/@react-navigation/react-react-navigationample?release-channel=pr-7720

.

@vonovak vonovak force-pushed the @vonovak/fix-header-font-weight branch from d6a1c79 to 3ef4f2b Compare March 3, 2020 17:37
@github-actions
Copy link

github-actions bot commented Mar 3, 2020

The Expo app for the example from this branch is ready!

expo.io/@react-navigation/react-react-navigationample?release-channel=pr-7720

.

@vonovak vonovak marked this pull request as ready for review March 3, 2020 17:44
@vonovak vonovak requested a review from satya164 March 3, 2020 17:44
the previously used fort weight of 500 would effectively be converted to `fontWeight: bold` because of facebook/react-native#25341

this fixes the title appearance to look as customary

Update HeaderTitle.tsx
@vonovak vonovak force-pushed the @vonovak/fix-header-font-weight branch from 3ef4f2b to 03b1161 Compare March 6, 2020 18:57
@codecov-io
Copy link

Codecov Report

Merging #7720 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7720   +/-   ##
=======================================
  Coverage   90.56%   90.56%           
=======================================
  Files          40       40           
  Lines        1060     1060           
  Branches      276      281    +5     
=======================================
  Hits          960      960           
  Misses         86       86           
  Partials       14       14

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb46d0b...03b1161. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Mar 6, 2020

The Expo app for the example from this branch is ready!

expo.io/@react-navigation/react-navigation-example?release-channel=pr-7720

.

Copy link
Member

@satya164 satya164 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR

Copy link
Member

@satya164 satya164 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR

@satya164 satya164 merged commit 0dcaea3 into master Mar 16, 2020
@satya164 satya164 deleted the @vonovak/fix-header-font-weight branch March 16, 2020 10:05
joshuapinter pushed a commit to cntral/react-navigation that referenced this pull request Sep 29, 2021
the previously used fort weight of 500 would effectively be converted to `fontWeight: bold` because of facebook/react-native#25341

this fixes the title appearance to look as customary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants