Support for Multiple Walkthroughable Elements in a Single `CopilotStep`

Abierto
#334 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
react-native, typescript
Área
mobile

Línea de trabajo

Comienza con la API walkthroughable y el comportamiento de CopilotStep descritos en el issue, y luego verifica cómo se gestionan actualmente varios hijos walkthroughable. Se considera terminado cuando un CopilotStep puede contener dos elementos Text walkthroughable junto a un Text no walkthroughable, con el resaltado y el comportamiento de los pasos previstos cubiertos por pruebas.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hi, thank you for creating and maintaining this great library!

I have a use case where I need to include multiple walkthroughable elements inside a single CopilotStep. Specifically, I have a View containing three Text components. I would like to make two of these Text components walkthroughable using const CopilotText = walkthroughable(Text);, while the third Text remains non-walkthroughable.

Here’s a simplified example of what I’m trying to achieve:

import { walkthroughable } from 'react-native-copilot';

const CopilotText = walkthroughable(Text);

<CopilotStep text="Step 1" order={1} name="step1">
  <View>
    <CopilotText>Walkthrough Text 1</CopilotText>
    <Text>Non-Walkthrough Text</Text>
    <CopilotText>Walkthrough Text 2</CopilotText>
  </View>
</CopilotStep>

Currently, it seems that the library does not support multiple walkthroughable elements within the same CopilotStep. Is there a way to achieve this with the current API? Or would this require an enhancement to the library?

If not supported, I believe this feature could be a valuable addition for scenarios where multiple interactive components need to be highlighted within a single logical step.

Looking forward to your response. Thank you for your time and for maintaining this awesome library!

Lenguaje dominante
TypeScript
Estrellas
2.4k
Forks
425
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de mohebifar/react-native-copilot

Todos los issues de mohebifar/react-native-copilot

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.