-
How can I wrap a screen under a Context Provider. I have seen all the issues and discussion and it seems there is no way to solve this ? I am creating Screen based on Props being passed down. Now the problem here is that, I need to provide context for each screen and it seems that it is not possible. Please help me here |
Beta Was this translation helpful? Give feedback.
Answered by
satya164
May 7, 2024
Replies: 1 comment 1 reply
-
React Navigation 7 supports a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
raajnadar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
React Navigation 7 supports a
layout
prop forscreen
component that can be used to add a wrapper (such as context provider) for the screen component.https://reactnavigation.org/docs/7.x/screen#layout