24ark / react-native-step-indicator

A simple react-native implementation of step indicator widget compatible with the ViewPager and ListView.
Apache License 2.0
1.43k stars 312 forks source link

custom Font Family for labels? #75

Open trinadhkoya9 opened 5 years ago

trinadhkoya9 commented 5 years ago

Not able to apply custom fontFamily to the Label Text

gang544043963 commented 4 years ago

I found that setting android system default font is work. such as "sans-serif-thin"

more default font: https://stackoverflow.com/questions/39535475/what-is-the-default-font-family-in-android

AldoAltamira commented 4 years ago

< StepIndicator renderLabel={this.renderLabel} />

use custom label

renderLabel = params => { return ( < Text style={styles.stepValue}> {this.state.labels[params.position]} < / Text>); };