Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renderLabel function #113

Open
hanaechahid opened this issue Jan 26, 2021 · 1 comment
Open

renderLabel function #113

hanaechahid opened this issue Jan 26, 2021 · 1 comment

Comments

@hanaechahid
Copy link

Hello, how can I use renderLabel function?

@Haseeba393
Copy link

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}
);
}}
/>

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

No branches or pull requests

2 participants