mirror of
https://github.com/DocNR/POWR.git
synced 2025-04-22 16:51:33 +00:00
13 lines
373 B
JavaScript
13 lines
373 B
JavaScript
![]() |
import { registerRootComponent } from 'expo';
|
||
|
import { ExpoRoot } from 'expo-router';
|
||
|
|
||
|
// https://docs.expo.dev/router/reference/troubleshooting/#expo_router_app_root-not-defined
|
||
|
|
||
|
// Must be exported or Fast Refresh won't update the context
|
||
|
export function App() {
|
||
|
const ctx = require.context('./app');
|
||
|
return <ExpoRoot context={ctx} />;
|
||
|
}
|
||
|
|
||
|
registerRootComponent(App);
|