react-native-progress-steps
react-native-progress-steps copied to clipboard
how can I use a function work nextstep, instead of press button?
how can I use a function work nextstep, instead of press button? I don't want press Next button, TKS
Did u find the way to use function to work to next step, instead of press button?
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>)
}
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.