Open hanaechahid opened 3 years ago
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} ); }} />
Hello, how can I use renderLabel function?