Skip to content

Conversation

@abifdhllh
Copy link
Contributor

@abifdhllh abifdhllh commented Oct 23, 2020

Overview

Added custom font styling for font-weight to fix issue #130

Test Plan

I Added fontWeight property on fontStyle & activeFontStyle props. Here is the example:

<SegmentedControl
  values={['One', 'Two']}
  selectedIndex={this.state.selectedIndex}
  onChange={(event) => {
    this.setState({selectedIndex: event.nativeEvent.selectedSegmentIndex});
  }}
  activeFontStyle={{
    fontWeight: '500'
  }}
  fontStyle={{
    fontWeight: '200'
  }}
/>

Copy link
Member

@Naturalclar Naturalclar left a comment

Choose a reason for hiding this comment

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

@abifdhllh thanks!

@Naturalclar Naturalclar merged commit ad9a71c into react-native-segmented-control:master Oct 26, 2020
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.

2 participants