Open hanaechahid opened 4 years ago
@colbymillerdev help please !!!
Try wrap the ProgressStep in a Fragment and add quiz.name as the key.
<ProgressSteps
ref={ref => { this.progressSteps = ref }}
activeStep={this.state.activeStep}>
{ this.state.quizz.map((quiz, i) => {
return (
<Fragment key={quiz.name}>
<ProgressStep label={quiz.name}
nextBtnStyle={styles.nextBtn} nextBtnTextStyle={styles.btnText}
scrollViewProps={this.defaultScrollViewProps}>
</ProgressStep>
</Fragment>
)
}
</ProgressSteps>
@colbymillerdev hello, were you able to find a solution to this?
hello, I have quizz array and i want to show the steps depending on the length and content of the array. So what I did is:
but I get this error :
can anyone help me?!