rn-tourguide icon indicating copy to clipboard operation
rn-tourguide copied to clipboard

Is there a way to pass text to TourGuideZoneByPosition?

Open alexandrumic opened this issue 3 years ago • 11 comments

Hello,

I need to use TourGuideZoneByPosition for some components (I have an absolute bottom positioned button and if I use TourGuideZone the height of the highlighted zone is about 1px, instead of the button's height).

But if I use TourGuideZoneByPosition with isTourGuide, then the pop-up says Zone X. Is there a way to pass a text to the TourGuideZoneByPosition?

Thanks in advance

alexandrumic avatar Oct 06 '20 11:10 alexandrumic

Yup i also need this one to be possible! 🙂

cindmichelle avatar Oct 06 '20 13:10 cindmichelle

Need one for me as well :). Please do it urgently - Carpenter

dhirajanand014 avatar Oct 29 '20 18:10 dhirajanand014

I need this too!

marcoburrometo avatar Nov 04 '20 12:11 marcoburrometo

I think is a mistake of author Add var text in TourGuideZoneByPosition.d.ts and TourGuideZoneByPosition.js and it's work. I hope this problem fized in newr version

Escalion86 avatar Nov 08 '20 09:11 Escalion86

Author updated

https://github.com/xcarpentier/rn-tourguide/commit/1673dffcbe134648275aede099fb588c54af7ca4

I think is a mistake of author Add var text in TourGuideZoneByPosition.d.ts and TourGuideZoneByPosition.js and it's work. I hope this problem fized in newr version

thanhdevapp avatar Nov 26 '20 16:11 thanhdevapp

@cindmichelle i hope you release soon, pls

thanhdevapp avatar Nov 27 '20 05:11 thanhdevapp

+1

felansu avatar Jan 23 '21 16:01 felansu

+1

gvelasquez760 avatar Feb 08 '21 15:02 gvelasquez760

@xcarpentier love this repo but this definitely needs to be fixed.

iankm avatar Feb 27 '21 18:02 iankm

For now, what I've done is to provide a custom component to handle the rendering:

import TourGuideTooltip from "~/components/TourGuideTooltip";

...

<TourGuideProvider tooltipComponent={TourGuideTooltip}>

gabrielnaoto avatar Mar 18 '21 00:03 gabrielnaoto

@gabrielnaoto hi how do you send text props into your custom tooltip component?

abdymm avatar Jan 27 '23 03:01 abdymm