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