admin管理员组

文章数量:1320915

I am using react native copilot and I need the copilot to work on various screens, not just one.

It works fine on the first screen but when I navigate to another (where everything is already set up for the copilot to work and I am calling start again), the steps of the first screen show up.

I am using in all of my screen the same useEffect:


  useEffect(() => {
      start(undefined, scrollViewRef.current);

    return () => {
      copilotEvents.off('stop');
    };
  }, []);

to start the process individually on each one but it always falls back to the steps of the firsts screen.

本文标签: androidhow to handle react native copilot with multiple screensStack Overflow