Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress View Path is not Navigable on Android #105

Open
NewTech2000 opened this issue Jul 21, 2023 · 0 comments
Open

Progress View Path is not Navigable on Android #105

NewTech2000 opened this issue Jul 21, 2023 · 0 comments

Comments

@NewTech2000
Copy link

WhatsApp Image 2023-07-21 at 6 14 38 PM

I have used this library but this path is not navigable on Android and it works on IOS Properly

This Is the Source Code

`import React from "react";
import { ProgressSteps, ProgressStep } from "react-native-progress-steps";
import PropTypes from "prop-types";
import { tr } from "../../resources/translations";
import { wdp } from "../../utils/responsive";

const Stepper = ({ steps, theme, disabled, onStepChange ,isDisable}) => {
return (
<ProgressSteps
progressBarColor={"#B8B8B8"}
activeStepIconBorderColor={theme}
activeLabelColor={theme}
completedStepIconColor={theme}
completedProgressBarColor={theme}
disabledStepIconColor={"#B8B8B8"}
labelColor={"#999999"}
completedLabelColor={theme}
isScrollable
onStepChange={onStepChange}
disabled={disabled}
>
{steps.map((step) => (
<ProgressStep
removeBtnRow={isDisable && step.id===0}
key={step.id}
nextBtnStyle={{
backgroundColor: theme,
borderRadius: 4
}}
nextBtnTextStyle={{
color: 'white',
fontSize: 15,
paddingHorizontal: wdp(3)
}}
previousBtnStyle={ step.id!==0?{
backgroundColor: theme,
borderRadius: 4
} :{}}
previousBtnTextStyle={{
color: 'white',
fontSize: 15
}}
label={step.title}
onNext={step.onNext}
onPrevious={step.onPrevious}
onSubmit={step.onSubmit}
nextBtnText={step.nextText || tr("app.next")}
>
{step.component}

))}

);
};

Stepper.propTypes = {
steps: PropTypes.array.isRequired,
theme: PropTypes.string,
disabled: PropTypes.bool,
onStepChange: PropTypes.func
};

Stepper.defaultProps = {
theme: {},
disabled: false,
onStepChange: null
}
export default Stepper;
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant