expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
25 lines • 1.21 kB
JavaScript
// The entry component (one that uses context modules) cannot be in the same file as the
// entry side-effects, otherwise they'll be updated when files are added/removed from the
// app directory. This will cause a lot of unfortunate errors regarding HMR and Fast Refresh.
// This is because Fast Refresh is sending the entire file containing an updated component.
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.App = void 0;
// This has to be the string "expo-router/_ctx" as we resolve the exact string to
// a different file in a custom resolver for bundle splitting in Node.js.
const _ctx_1 = require("expo-router/_ctx");
const react_1 = __importDefault(require("react"));
const ExpoRoot_1 = require("./ExpoRoot");
const head_1 = require("./head");
require("./fast-refresh");
// Must be exported or Fast Refresh won't update the context
function App() {
return (<head_1.Head.Provider>
<ExpoRoot_1.ExpoRoot context={_ctx_1.ctx}/>
</head_1.Head.Provider>);
}
exports.App = App;
//# sourceMappingURL=qualified-entry.js.map
;