-
|
Hello and thank you for your amazing library! :) I am exclusively using the static configuration (React Navigation 7) because automatic TypeScript detection is important to me. However, to my knowledge, it's not possible to use a hook like useTranslation with a static configuration, and this is a significant issue for me. I "hacked" a workaround, but it doesn't seem great to me: Navigator : HeaderTitle with useTranslation() hook : Do you have a better solution to manage this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
The plan is to use https://react.dev/reference/react/use to read context. However React 19 has been delayed for quite long time so I'm waiting for the release until I can properly test it. If you need more than context, then specifying components is the only way. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for your response :) |
Beta Was this translation helpful? Give feedback.
The plan is to use https://react.dev/reference/react/use to read context. However React 19 has been delayed for quite long time so I'm waiting for the release until I can properly test it.
If you need more than context, then specifying components is the only way.