how to handle react native copilot with multiple screens?

PressRex profile image
by PressRex
how to handle react native copilot with multiple screens?

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.

Source: View source

PressRex profile image
by PressRex

Subscribe to New Posts

Lorem ultrices malesuada sapien amet pulvinar quis. Feugiat etiam ullamcorper pharetra vitae nibh enim vel.

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Read More