xcarpentier / rn-tourguide

🚩Make an interactive step by step tour guide for your react-native app (a rewrite of react-native-copilot)
https://xcarpentier.github.io/rn-tourguide/
Other
735 stars 213 forks source link

Is there a way to pass text to TourGuideZoneByPosition? #16

Open alexandrumic opened 4 years ago

alexandrumic commented 4 years ago

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

cindmichelle commented 4 years ago

Yup i also need this one to be possible! 🙂

dhirajanand014 commented 3 years ago

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

marcoburrometo commented 3 years ago

I need this too!

Escalion86 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@cindmichelle i hope you release soon, pls

felansu commented 3 years ago

+1

gvelasquez760 commented 3 years ago

+1

iankm commented 3 years ago

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

gabrielnaoto commented 3 years ago

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

import TourGuideTooltip from "~/components/TourGuideTooltip";

...

<TourGuideProvider tooltipComponent={TourGuideTooltip}>
abdymm commented 1 year ago

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