MCPcopy Create free account
hub / github.com/24ark/react-native-step-indicator / renderLabel

Function renderLabel

example/src/HorizontalStepIndicator.tsx:138–159  ·  view source on GitHub ↗
({
    position,
    label,
    currentPosition,
  }: {
    position: number;
    stepStatus: string;
    label: string;
    currentPosition: number;
  })

Source from the content-addressed store, hash-verified

136 );
137
138 const renderLabel = ({
139 position,
140 label,
141 currentPosition,
142 }: {
143 position: number;
144 stepStatus: string;
145 label: string;
146 currentPosition: number;
147 }) => {
148 return (
149 <Text
150 style={
151 position === currentPosition
152 ? styles.stepLabelSelected
153 : styles.stepLabel
154 }
155 >
156 {label}
157 </Text>
158 );
159 };
160
161 return (
162 <View style={styles.container}>

Callers 1

renderStepLabelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…