react-native-copilot icon indicating copy to clipboard operation
react-native-copilot copied to clipboard

React native copilot with react-navigation

Open snownoop opened this issue 4 years ago • 9 comments

Hello. Anyone know when to call start() function if i am using react-navigation createBottomTabNavigator and changing screens. I want to highlight different views on different screens that can be switch with this bottom bar. Howerver, when i am trying to use useEffect(() => {}, []) or even react navigation events like onDidFocus i got them trigger before my simulator actually rendered view. So the highlightning area is empty. One of workaround is to setTimeout inside of useEffect and only then call start, but maybe there is some way to detect screen is fully loaded and shown ? Thanks.

snownoop avatar Oct 26 '19 21:10 snownoop

Hi @snownoop I have just come across identical usage case, where I hooked copilot steps to bottom tab navigator buttons, but I am not sure how to trigger it to start.

I am wondering whether you did any progress on this and you will be willing to share a solution if you found one?

Many thanks.

lrpinto avatar Feb 18 '20 11:02 lrpinto

any update on this? i need to implement this

Pholenk avatar Mar 24 '20 16:03 Pholenk

any update on this? i need to implement this

Hi you can do it with a invisible view on your main screen.

lrpinto avatar Mar 25 '20 21:03 lrpinto

any update on this? i need to implement this

Hi you can do it with a invisible view on your main screen.

i already able to show copilot in bottom tab navigation but looks like so tricky

Pholenk avatar Mar 31 '20 04:03 Pholenk

you have to trigger via <NavigationEvents onFocus={() => {}} /> and not by useEffect a tab view screens are not un-mounted to allow for quick navigation between tabs

export-mike avatar Apr 24 '20 00:04 export-mike

Any updates on this?

Vijay1126 avatar Sep 20 '20 23:09 Vijay1126

it's very strange that still there is no progress on this topic. <NavigationEvents onFocus={() => {}} />deprecated 2 years ago.

Bayramito avatar Apr 12 '23 11:04 Bayramito

I'll prioritize this.

mohebifar avatar Apr 13 '23 13:04 mohebifar

Any Update with Solution Please. @mohebifar

Biplovkumar avatar Nov 09 '23 07:11 Biplovkumar