start function is not firing up the Copilot Steps

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

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
react-native, typescript
Área
mobile

Línea de trabajo

Empieza por la línea referenciada de src/Components/Tabs/Schedule.tsx y sigue la ruta de useCopilot start/onLayout. Reproduce el comportamiento en React Native 0.83.0 con newArchEnabled=true, comparándolo con 0.77.3; se considera completado cuando start activa de forma fiable los pasos y eventos de Copilot.

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

Descripción

Current Behavior
Everything was working fine till I was at react-native: 0.77.3. As soon as I upgraded to react-native: 0.83.0, I start getting issue of copilot-Steps not appearing or appearing after a lot of time then expected. I fire up the copilot events at start so I use onLayout but when it didn't appear, I tried to fire those events using start function with a Pressable Button but that didn't worked either. Also I have newArchEnabled=true which is essential for my build. Trying Below to give you some glimpse of my code:

Input Code

const { start, copilotEvents } = useCopilot();  // start is ran using onLayout in main View
const [lastEvent, setLastEvent] = useState<string | null>(null);

useEffect(() => {
      copilotEvents.on("stepChange", (step) => {
        setLastEvent(`stepChange: ${step?.name}`);
      });
      copilotEvents.on("start", () => {
        setLastEvent(`start`);
      });
      copilotEvents.on("stop", () => {
        setLastEvent(`stop`);
        dispatch(updateLocalStorageInfo("Schedule_Walkthrough_Completed"))
        console.log("Steps Completed")
      });
    }, [copilotEvents]);

<View style={styles.mainStyle} 
              onLayout={() => {
                 setTimeout(() => {
                    start(); 
                  }, 2000);
               }}>
  • Repo link (1596th Line):
https://github.com/RAWLICK/Rescheduler-App/blob/main/src/Components/Tabs/Schedule.tsx

Expected behavior/code
start function should normally fire up the copilot events as it was working before

Environment

  • Device: [Realme P4x]
  • OS: [Android 15]
  • react-native-copilot: [3.3.3]
  • react-native: [0.83.0]
  • react-native-svg: [15.15.1]
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.