最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - how to handle react native copilot with multiple screens? - Stack Overflow

programmeradmin2浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论