Files
marianesaldana 80dbd947e5 Initial commit
2026-05-23 08:59:34 -06:00

14 lines
605 B
JavaScript

/**
* Reloads the app.
*
* This function works for both release and debug builds.
*
* Unlike [`Updates.reloadAsync()`](https://docs.expo.dev/versions/latest/sdk/updates/#updatesreloadasync),
* this function does not use a new update even if one is available. It only reloads the app using the same JavaScript bundle that is currently running.
*
* @param reason The reason for reloading the app. This is used only for some platforms.
*/
export async function reloadAppAsync(reason = 'Reloaded from JS call') {
await globalThis.expo?.reloadAppAsync(reason);
}
//# sourceMappingURL=reload.js.map