react-native-step-indicator icon indicating copy to clipboard operation
react-native-step-indicator copied to clipboard

Custom Image for Finished

Open rahiljain09 opened this issue 7 years ago • 4 comments

screen shot 2019-03-07 at 4 30 01 pm I want to render Custom Image for finished and numbers for current and not finished.

rahiljain09 avatar Mar 07 '19 11:03 rahiljain09

@rahiljain09 You can use the renderStepIndicator prop to render a custom component for each step. One of the examples uses react-native-vector-icons to render icons inside each step.

24ark avatar Apr 06 '19 14:04 24ark

@24ark can we add image at the last of step like this Screen Shot 2020-09-06 at 6 58 17 PM

ahtisham09 avatar Sep 06 '20 13:09 ahtisham09

any option to just override one specific step? i'm facing similar issue when trying to add failed step with X

OrLevy23 avatar May 24 '21 12:05 OrLevy23

For the above issue, you can leverage position and stepStatus property of the renderStepIndicator.

const renderStepIndicator = ({ position, stepStatus }) => { if (stepStatus === 'finished') { return (<Icon name="checkmark" />); } return <Text style={{ color: '#ffffff' }}>{position + 1}</Text>; };

image

KiratiBhuva avatar Oct 12 '21 23:10 KiratiBhuva