react-native-progress-steps icon indicating copy to clipboard operation
react-native-progress-steps copied to clipboard

how can I use a function work nextstep, instead of press button?

Open darryl-tan opened this issue 3 years ago • 3 comments

how can I use a function work nextstep, instead of press button? I don't want press Next button, TKS

darryl-tan avatar Jun 17 '21 14:06 darryl-tan

Did u find the way to use function to work to next step, instead of press button?

Naandalist avatar Jul 01 '21 12:07 Naandalist

here's a solution might be not that good. also check out isComplete prop

const Example = ()=>{
  const [step,setStep] = useState(0);
  const handleStep = ()=>{
    /// your logic where you can set Step page
    setStep(2);
  }

  return(<ProgressSteps activeStep={step}>
    <ProgressStep removeBtnRow>
      step 1 
    </ProgressStep>
    <ProgressStep removeBtnRow>
      step 2 
    </ProgressStep>
  </ProgressSteps>)

}

haseeb-numu avatar Jul 09 '21 20:07 haseeb-numu

thanks bro

------------------ 原始邮件 ------------------ 发件人: "colbymillerdev/react-native-progress-steps" @.>; 发送时间: 2021年7月10日(星期六) 凌晨4:56 @.>; @.@.>; 主题: Re: [colbymillerdev/react-native-progress-steps] how can I use a function work nextstep, instead of press button? (#89)

here's a solution might be not that good. also check out isComplete prop ` const Example = ()=>{ const [step,setStep] = useState(0); const handleStep = ()=>{ /// your logic where you can set Step page setStep(2); }

return(

step 1

step 2

)

} `

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

darryl-tan avatar Jul 11 '21 07:07 darryl-tan