Render custom component above thumb
@BartoszKlonowski ya está trabajando en esto.
Desde el 10/9/2024.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Ask your Question
i have requirement to render custom component with dynamic value above the thumb like this
I took a look at the code and there is no way for now to render custom component/element above the thumb.
maybe we can do something like this?
export const SliderTrackMark = ({
isTrue,
thumbImage,
StepMarker,
+ index
+ renderAboveThumbComponent
}: TrackMarksProps) => {
return (
<View style={styles.trackMarkContainer}>
{StepMarker ? <StepMarker stepMarked={isTrue} /> : null}
{thumbImage && isTrue ? (
<>
+ {renderAboveThumbComponent(index)}
<View style={styles.thumbImageContainer}>
<Image source={thumbImage} style={styles.thumbImage} />
</View>
</>
) : null}
</View>
);
};
API name inspired by https://github.com/miblanchard/react-native-slider/blob/cb80d87c7f80f27856613e18459c80c70d638df7/README.md?plain=1#L88
maybe one consideration, from windows example
there is already a box with step value rendered above the thumb.
is it gonna be a conflict if we implement this?
or is there a better way to handle this case?
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.4k
- Forks
- 296
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstack/react-native-slider
-
Web: value={0} with a negative minimumValue renders the thumb at the minimumPosiblemente ocupada @huytdps13400 la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
callstack/react-native-slider#828 ·
-
Missing peerDependencies for react and react-native causes duplicate React instances in pnpm monoreposPosiblemente ocupada @patrickwehbe la tomó hace 110 días. Abiertobug report
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
callstack/react-native-slider#769 ·
-
bug report platform: iOS v6
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
callstack/react-native-slider#782 · 6 comentarios ·
-
iOS: negative min value and 0 as maximum value turns maximum to 1Posiblemente ocupada @huytdps13400 la tomó hace 4 días. Abiertobug report
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
callstack/react-native-slider#780 · 1 comentario ·
-
bug report
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
callstack/react-native-slider#767 ·
Todos los issues de callstack/react-native-slider
Issues similares
-
Flaky: mongodb-memory-server 'Port already in use' when another process starts a mongod concurrentlyAbiertoarea:testing bug effort:S priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
lens:agent lens:process process
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
thebristolsound/birdbrain#1772 ·
Los mantenedores suelen responder en 1 día
-
bug priority:low ready-for-dev
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Automattic/data-liberation-agent#685 ·
Los mantenedores suelen responder en 1 día
-
Business
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día