react-native-step-indicator icon indicating copy to clipboard operation
react-native-step-indicator copied to clipboard

renderLabel function

Open hanaechahid opened this issue 5 years ago • 1 comments

Hello, how can I use renderLabel function?

hanaechahid avatar Jan 26 '21 12:01 hanaechahid

This is how you can use this function <StepIndicator customStyles={customStyles} currentPosition={0} labels={TRACK_LABELS} direction='vertical' renderLabel={({position, stepStatus, label, currentPosition})=>{ return( <Text style={{ fontFamily: FONT, fontSize: WP(TEXT_SIZES.info_1), color: position == currentPosition ? COLORS.primaryColor:COLORS.blackColor, textAlign: 'left', }}>{label}</Text> ); }} />

Haseeba393 avatar Mar 08 '21 07:03 Haseeba393