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

display dynamically the steps with their contents #100

Open hanaechahid opened 4 years ago

hanaechahid commented 4 years ago

hello, I have quizz array and i want to display the steps depending on the length and content of the array.

For example, I have 3 quizz so I want to see 3 steps and each step contains its content(quiz).

How can I do this?

Thank you for your attention. I’m looking forward to your reply

pmutshipayi commented 4 years ago

This is a late response but you can archive it like this,

<StepIndicator
     customStyles={customStyles}
     labels={quiz}
     stepCount={quiz.length}
/>

Where quiz is your array