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

[NavigatorIOS] allow font family for title #1667

Closed
wants to merge 1 commit into from

Conversation

ojkelly
Copy link

@ojkelly ojkelly commented Jun 18, 2015

Allow different font families in the title and right and left buttons.

Only caveat, is that it requires the use of the machine name of the font, such as Helvetica-BoldItalic, for bold italic Helvetica.

I've added an example to UIExplorer.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jun 18, 2015
@brentvatne
Copy link
Collaborator

@ojkelly - can you squash this into one commit please?

Update RCTWrapperViewController.m

Update RCTNavItem.h

Update RCTNavItemManager.m

Update NavigatorIOS.ios.js

Update NavigatorIOSColorsExample.js
@ojkelly ojkelly force-pushed the navigator-allow-font-family branch from 715d911 to 4a4624b Compare June 21, 2015 05:59
@@ -66,6 +66,7 @@ var NavigatorIOSColors = React.createClass({
tintColor="#FFFFFF"
barTintColor="#183E63"
titleTextColor="#FFFFFF"
fontFamily="Helvetica"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you change this to "titleFontFamily"?

Copy link
Author

Choose a reason for hiding this comment

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

I'm pretty certain this affects the font family of the left and right buttons as well, so I don't know if titleFontFamily would be applicable?

I can test this and confirm for you if this will affect more than just the title.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would be surprised if that were true, but if so then I agree fontFamily would make sense for the name.

Copy link
Author

Choose a reason for hiding this comment

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

Just tested, it appears to only affect the title. I must have been playing with some other title.

I'll get that changed and update the PR.

@facebook-github-bot
Copy link
Contributor

@ojkelly updated the pull request.

@satya164
Copy link
Contributor

@ojkelly Can you rebase it please?

@brentvatne
Copy link
Collaborator

Closing this because #2242 is more comprehensive.. thank you very much for the PR though @ojkelly and apologies for taking so long to get back to you :( :)

@brentvatne brentvatne closed this Jan 3, 2016
@ojkelly
Copy link
Author

ojkelly commented Jan 3, 2016

@brentvatne no worries, sorry I didn't have the time to complete it. Not doing much with react-native until late Jan unfortunately.

@brentvatne
Copy link
Collaborator

@ojkelly - no problem :) see you around here in late Jan then 🎱

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants