UNPKG

expo-modules-core

Version:
12 lines (11 loc) 563 B
/** * Reloads the app. This method works for both release and debug builds. * * Unlike [`Updates.reloadAsync()`](/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: string = 'Reloaded from JS call'): Promise<void> { await globalThis.expo?.reloadAppAsync(reason); }