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
745 stars 214 forks source link

How to pass provider context to grand-children #85

Closed evanlarkin10 closed 2 years ago

evanlarkin10 commented 2 years ago

I'm trying to wrap components of the screen's children with TourGuideZone, but I am getting context undefined. How can I pass the same TourGuideProvider context onto the children of the screen?

Ex: ` function App({ ...props }) { return (

); } `

function Child({ ...props }) { return ( <Grandchild {...props} /> ); }

` function Grandchild({ ...props }) { return (