Skip to content

Top tab font family#2410

Merged
guyca merged 3 commits into
v2from
topTabFontFamily
Dec 26, 2017
Merged

Top tab font family#2410
guyca merged 3 commits into
v2from
topTabFontFamily

Conversation

@guyca
Copy link
Copy Markdown
Collaborator

@guyca guyca commented Dec 25, 2017

API

Navigation.push(this.props.containerId, {
  topTabs: [
          {
          name: 'navigation.playground.TopTabScreen',
          passProps: {
            title: 'Tab 2',
            text: 'This is top tab 2'
          },
          navigationOptions: {
            topTab: {
              title: 'Tab 2',
              titleFontFamily: 'Dosis-Regular'
            }
          }
        }
  ]
});

if (json == null) return result;

result.title = json.optString("title", NO_VALUE);
result.fontFamily = typefaceManager.getTypeFace(json.optString("titleFontFamily"));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do you need to load typeface now. I mean it's better to have it consistent. Because topBar options load typeface in presenter, and topTabs in parser.

@guyca guyca dismissed Cool04ek’s stale review December 26, 2017 09:42

As agreed, will fix this in a separate pr.

@guyca guyca removed the request for review from DanielZlotin December 26, 2017 09:42
@guyca guyca merged commit 29b34c7 into v2 Dec 26, 2017
@guyca guyca deleted the topTabFontFamily branch December 26, 2017 09:43
chilinh added a commit to chilinh/react-native-navigation that referenced this pull request Jan 5, 2018
* r_v2: (34 commits)
  Fix typo in README.md
  top tabs support - ios (wix#2454)
  homogenous root view container protocol (wix#2455)
  Fixing stuff (wix#2456)
  Support changing TopTabs font size (wix#2449)
  Implement selected and unselected toTab color (wix#2429)
  added drawUnder (wix#2427)
  Fix failing android e2e (wix#2424)
  Load typface when parsing options (wix#2416)
  V2 Current tab by container ID (wix#2264)
  remove package.lock from npmignore
  V2 rn49 (wix#2411)
  Top tab font family (wix#2410)
  added missing options (wix#2408)
  V2 async commands (wix#2407)
  Tab bar items (wix#2345)
  Added Jenkinsfile
  Added new jenkins file for jenkins pipleine
  [docs] Linkify parameter types (wix#2403)
  [docs] Change heading depth (wix#2401)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants