colbymillerdev / react-native-progress-steps

A simple and fully customizable React Native component that implements a progress stepper UI.
MIT License
361 stars 145 forks source link

can't hide previous and next buttons #101

Open anis-18 opened 2 years ago

anis-18 commented 2 years ago

properties to disable next and previous button ain't working

<ProgressSteps nextBtnDisabled>
            <ProgressStep label="First Step">
              <View style={{ alignItems: 'center' }}>
                <Text>This is the content within step 1!</Text>
              </View>
            </ProgressStep>
            <ProgressStep label="Second Step">
              <View style={{ alignItems: 'center' }}>
                <Text>This is the content within step 2!</Text>
              </View>
</ProgressSteps>
jsh854 commented 2 years ago

what worked for me is this nextBtnDisabled={true} inside every progressStep whose next button you want to disable , similarly for the previous button as well if you want to just remove the buttons you can use removeBtnRow={true} inside every progressStep

ChaitanyaHoodie commented 4 months ago

is there a way to goto next step without using the buttons provided here but with some other button in the page?