Expo navigation template + wrapping app in context?


I have a bit of a problem with my expo app. When I started the project, I chose a navigation template with an expo router. It had a different project structure (index.ts instead of App.js), but I liked that template, so I continued. Now, I need to use the context hook, but my usual approach of wrapping the whole app in a context provider doesn’t seem possible. The index.ts file only contains import 'expo-router/entry';, and I find this setup confusing because I’m used to the standard React project structure. I might be missing something obvious, but I’m stuck and not sure what to do next.

Should I start over with the standard project structure (which would mean losing a few days of work), or is there another solution you can suggest? Thanks for your help.